|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jini.jeri.tcp.TcpServerEndpoint.LH
private static class TcpServerEndpoint.LH
ListenHandle implementation: represents a listen operation.
Nested Class Summary | |
---|---|
private class |
TcpServerEndpoint.LH.ServerConnectionImpl
ServerConnection implementation. |
Field Summary | |
---|---|
private int |
acceptFailureCount
|
private long |
acceptFailureTime
|
private boolean |
closed
|
private Set |
connections
|
private ServerEndpoint.ListenCookie |
cookie
|
private Object |
lock
|
private RequestDispatcher |
requestDispatcher
|
private SecurityContext |
securityContext
|
private ServerSocket |
serverSocket
|
Constructor Summary | |
---|---|
TcpServerEndpoint.LH(RequestDispatcher requestDispatcher,
ServerSocket serverSocket,
SecurityContext securityContext,
ServerEndpoint.ListenCookie cookie)
|
Method Summary | |
---|---|
void |
close()
Stops this listen operation. |
private boolean |
continueAfterAcceptFailure(Throwable t)
Throttles the accept loop after ServerSocket.accept throws an exception, and decides whether to continue at all. |
private void |
executeAcceptLoop()
Executes the accept loop. |
ServerEndpoint.ListenCookie |
getCookie()
Returns a cookie to identify this listen operation. |
(package private) void |
startAccepting()
Starts the accept loop. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final RequestDispatcher requestDispatcher
private final ServerSocket serverSocket
private final SecurityContext securityContext
private final ServerEndpoint.ListenCookie cookie
private long acceptFailureTime
private int acceptFailureCount
private final Object lock
private boolean closed
private final Set connections
Constructor Detail |
---|
TcpServerEndpoint.LH(RequestDispatcher requestDispatcher, ServerSocket serverSocket, SecurityContext securityContext, ServerEndpoint.ListenCookie cookie)
Method Detail |
---|
void startAccepting()
private void executeAcceptLoop()
public void close()
close
in interface ServerEndpoint.ListenHandle
public ServerEndpoint.ListenCookie getCookie()
getCookie
in interface ServerEndpoint.ListenHandle
ListenCookie
to identify the listen
operationpublic String toString()
toString
in class Object
private boolean continueAfterAcceptFailure(Throwable t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |