| Modifier and Type | Field and Description |
|---|---|
| private final DefaultListeningIOReactor |
| Access | Constructor and Description |
|---|---|
| public | AsyncServer(final IOEventHandlerFactory eventHandlerFactory, final IOReactorConfig ioReactorConfig, final Decorator<IOSession> ioSessionDecorator, final Callback<Exception> exceptionCallback, final IOSessionListener sessionListener, final Callback<IOSession> sessionShutdownCallback)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | awaitShutdown(final TimeValue
wait time. waitTime)Implements org. |
| public void | close(final CloseMode
How to close the receiver. closeMode)Implements org. |
| public void | close()
Implements java. |
| public Set | getEndpoints()
Implements org. |
| pack-priv ConnectionInitiator | |
| public IOReactorStatus | getStatus()
Implements org. |
| public void | initiateShutdown()
Implements org. |
| public Future | listen(final SocketAddress
the socket address to listen on. address, final Object the attachment object. attachment, final FutureCallback<ListenerEndpoint> the result callback. callback)Overrides default org. |
| public Future | listen(final SocketAddress
the socket address to listen on. address, final FutureCallback<ListenerEndpoint> the result callback. callback)Implements org. |
| public Future | |
| public void | pause()
Implements org. |
| public void | resume()
Implements org. |
| public void |
| ioReactor | back to summary |
|---|---|
| private final DefaultListeningIOReactor ioReactor | |
| AsyncServer | back to summary |
|---|---|
public AsyncServer(final IOEventHandlerFactory eventHandlerFactory, final IOReactorConfig ioReactorConfig, final Decorator<IOSession> ioSessionDecorator, final Callback<Exception> exceptionCallback, final IOSessionListener sessionListener, final Callback<IOSession> sessionShutdownCallback)
| |
| awaitShutdown | back to summary |
|---|---|
| public void awaitShutdown(final TimeValue waitTime) throws InterruptedException Implements org. Doc from org. Blocks for the given period of time in milliseconds awaiting the completion of the reactor shutdown. | |
| close | back to summary |
|---|---|
| public void close(final CloseMode closeMode) Implements org. Doc from org. Shuts down the I/O reactor either gracefully or immediately. During graceful shutdown individual I/O sessions should be informed about imminent termination and be given a grace period to complete the ongoing I/O sessions. During immediate shutdown all ongoing I/O sessions get aborted immediately.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| getEndpoints | back to summary |
|---|---|
| public Set Implements org. Doc from org. Returns a set of endpoints for this I/O reactor.
| |
| getIOReactor | back to summary |
|---|---|
| pack-priv ConnectionInitiator getIOReactor() Implements abstract org.
| |
| getStatus | back to summary |
|---|---|
| public IOReactorStatus getStatus() Implements org. Doc from org. Returns the current status of the reactor.
| |
| initiateShutdown | back to summary |
|---|---|
| public void initiateShutdown() Implements org. Doc from org. Initiates shutdown of the reactor without blocking. The reactor is expected to terminate all active connections, to shut down itself and to release system resources it currently holds
| |
| listen | back to summary |
|---|---|
| public Future Overrides default org. Doc from org. Opens a new listener endpoint with the given socket address. Once the endpoint is fully initialized it starts accepting incoming connections and propagates I/O activity notifications to the I/O event dispatcher.
| |
| listen | back to summary |
|---|---|
| public Future Implements org. Doc from org. Opens a new listener endpoint with the given socket address. Once the endpoint is fully initialized it starts accepting incoming connections and propagates I/O activity notifications to the I/O event dispatcher.
| |
| listen | back to summary |
|---|---|
| public Future | |
| pause | back to summary |
|---|---|
| public void pause() throws IOException Implements org. Doc from org. Suspends the I/O reactor preventing it from accepting new connections on all active endpoints.
| |
| resume | back to summary |
|---|---|
| public void resume() throws IOException Implements org. Doc from org. Resumes the I/O reactor restoring its ability to accept incoming connections on all active endpoints.
| |
| start | back to summary |
|---|---|
| public void start() Implements org. Doc from org. Starts I/O reactor.
| |