|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.jeri.internal.http.HttpServerManager
public class HttpServerManager
Class for managing server-side functions shared among multiple connections, such as acknowledgment notification.
Nested Class Summary | |
---|---|
private static class |
HttpServerManager.AckListenerMap
Map for tracking registered AcknowledgmentSource.Listeners. |
Field Summary | |
---|---|
private HttpServerManager.AckListenerMap |
ackListeners
|
private Object |
cookieLock
|
private long |
nextCookie
|
private static Executor |
userThreadPool
|
Constructor Summary | |
---|---|
HttpServerManager(long ackTimeout)
Creates new HttpServerManager which invalidates transport acknowledgments after the given timeout. |
Method Summary | |
---|---|
(package private) void |
addAckListener(String cookie,
AcknowledgmentSource.Listener listener)
Registers listener waiting for given cookie. |
private static void |
doAckNotifications(LinkedList list,
boolean recvd)
Notifies list of AcknowledgmentSource.Listeners. |
(package private) String |
newCookie()
Returns unique cookie string. |
(package private) void |
notifyAckListeners(String cookie)
Notifies all listeners waiting for given cookie with received == true. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Executor userThreadPool
private final HttpServerManager.AckListenerMap ackListeners
private final Object cookieLock
private long nextCookie
Constructor Detail |
---|
public HttpServerManager(long ackTimeout)
Method Detail |
---|
String newCookie()
void addAckListener(String cookie, AcknowledgmentSource.Listener listener)
void notifyAckListeners(String cookie)
private static void doAckNotifications(LinkedList list, boolean recvd)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |