public class AsyncServer extends Object
| Constructor and Description |
|---|
AsyncServer(IOReactorConfig ioReactorConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitShutdown(TimeValue waitTime) |
void |
close() |
protected void |
execute(IOEventHandlerFactory ioEventHandlerFactory) |
Set<ListenerEndpoint> |
getEndpoints() |
IOReactorStatus |
getStatus() |
void |
initiateShutdown() |
Future<ListenerEndpoint> |
listen(InetSocketAddress address) |
void |
shutdown(TimeValue graceTime) |
public AsyncServer(IOReactorConfig ioReactorConfig)
public Future<ListenerEndpoint> listen(InetSocketAddress address)
public Set<ListenerEndpoint> getEndpoints()
protected void execute(IOEventHandlerFactory ioEventHandlerFactory) throws IOException
IOExceptionpublic IOReactorStatus getStatus()
public void awaitShutdown(TimeValue waitTime) throws InterruptedException
InterruptedExceptionpublic void initiateShutdown()
public void shutdown(TimeValue graceTime)
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.