public static interface AbstractEndpoint.Handler<S>
Modifier and Type | Interface and Description |
---|---|
static class |
AbstractEndpoint.Handler.SocketState
Different types of socket states to react upon.
|
Modifier and Type | Method and Description |
---|---|
Object |
getGlobal()
Obtain the GlobalRequestProcessor associated with the handler.
|
Set<S> |
getOpenSockets()
Obtain the currently open sockets.
|
void |
pause()
Inform the handler that the endpoint has stopped accepting any new
connections.
|
AbstractEndpoint.Handler.SocketState |
process(SocketWrapperBase<S> socket,
SocketEvent status)
Process the provided socket with the given current status.
|
void |
recycle()
Recycle resources associated with the handler.
|
void |
release(SocketWrapperBase<S> socketWrapper)
Release any resources associated with the given SocketWrapper.
|
AbstractEndpoint.Handler.SocketState process(SocketWrapperBase<S> socket, SocketEvent status)
socket
- The socket to processstatus
- The current socket statusObject getGlobal()
Set<S> getOpenSockets()
void release(SocketWrapperBase<S> socketWrapper)
socketWrapper
- The socketWrapper to release resources forvoid pause()
void recycle()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.