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
IOException
public IOReactorStatus getStatus()
public void awaitShutdown(TimeValue waitTime) throws InterruptedException
InterruptedException
public void initiateShutdown()
public void shutdown(TimeValue graceTime)
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.