public class HttpListenersHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HashSet<HttpListener> |
listeners |
protected WeakHashMap<HttpListener,Object> |
weakLinks |
| Constructor and Description |
|---|
HttpListenersHelper() |
HttpListenersHelper(boolean sync) |
HttpListenersHelper(boolean sync,
Object synObj) |
| Modifier and Type | Method and Description |
|---|---|
Closeable |
addListener(HttpListener listener) |
Closeable |
addListener(HttpListener listener,
boolean weakLink) |
void |
fireEvent(HttpEvent event) |
Set<HttpListener> |
getListeners() |
void |
removeListener(HttpListener listener) |
protected HashSet<HttpListener> listeners
protected WeakHashMap<HttpListener,Object> weakLinks
public HttpListenersHelper()
public HttpListenersHelper(boolean sync)
public HttpListenersHelper(boolean sync,
Object synObj)
public Set<HttpListener> getListeners()
public Closeable addListener(HttpListener listener)
public Closeable addListener(HttpListener listener, boolean weakLink)
public void removeListener(HttpListener listener)
public void fireEvent(HttpEvent event)
Copyright © 2017. All rights reserved.