public class TSaslNonblockingServer extends TServer
| Modifier and Type | Class and Description |
|---|---|
static class |
TSaslNonblockingServer.Args |
TServer.AbstractServerArgs<T extends TServer.AbstractServerArgs<T>>eventHandler_, inputProtocolFactory_, inputTransportFactory_, outputProtocolFactory_, outputTransportFactory_, processorFactory_, serverTransport_, stopped_| Constructor and Description |
|---|
TSaslNonblockingServer(TSaslNonblockingServer.Args args) |
| Modifier and Type | Method and Description |
|---|---|
void |
serve()
The run method fires up the server and gets things going.
|
void |
shutdown()
Gracefully shut down the server and block until all threads are stopped.
|
void |
stop()
Trigger a graceful shutdown, but it does not block to wait for the shutdown to finish.
|
getEventHandler, getShouldStop, isServing, setServerEventHandler, setServing, setShouldStoppublic TSaslNonblockingServer(TSaslNonblockingServer.Args args) throws java.io.IOException
java.io.IOExceptionpublic void serve()
TServerpublic void stop()
public void shutdown()
throws java.lang.InterruptedException
java.lang.InterruptedException - if is interrupted while waiting for shutdown.