org.apache.blur.thirdparty.thrift_0_9_0.server
Class TNonblockingServer
java.lang.Object
org.apache.blur.thirdparty.thrift_0_9_0.server.TServer
org.apache.blur.thirdparty.thrift_0_9_0.server.AbstractNonblockingServer
org.apache.blur.thirdparty.thrift_0_9_0.server.TNonblockingServer
- Direct Known Subclasses:
- THsHaServer
public class TNonblockingServer
- extends AbstractNonblockingServer
A nonblocking TServer implementation. This allows for fairness amongst all
connected clients in terms of invocations.
This server is inherently single-threaded. If you want a limited thread pool
coupled with invocation-fairness, see THsHaServer.
To use this server, you MUST use a TFramedTransport at the outermost
transport, otherwise this server will be unable to determine when a whole
method call has been read off the wire. Clients must also use TFramedTransport.
Method Summary |
boolean |
isStopped()
|
void |
stop()
Stop serving and shut everything down. |
Methods inherited from class org.apache.blur.thirdparty.thrift_0_9_0.server.TServer |
isServing |
TNonblockingServer
public TNonblockingServer(AbstractNonblockingServer.AbstractNonblockingServerArgs args)
stop
public void stop()
- Stop serving and shut everything down.
- Overrides:
stop
in class TServer
isStopped
public boolean isStopped()
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.