org.apache.blur.thirdparty.thrift_0_9_0.server
Class TNonblockingServer

java.lang.Object
  extended by org.apache.blur.thirdparty.thrift_0_9_0.server.TServer
      extended by org.apache.blur.thirdparty.thrift_0_9_0.server.AbstractNonblockingServer
          extended by 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.


Nested Class Summary
static class TNonblockingServer.Args
           
 
Nested classes/interfaces inherited from class org.apache.blur.thirdparty.thrift_0_9_0.server.AbstractNonblockingServer
AbstractNonblockingServer.AbstractNonblockingServerArgs<T extends AbstractNonblockingServer.AbstractNonblockingServerArgs<T>>
 
Nested classes/interfaces inherited from class org.apache.blur.thirdparty.thrift_0_9_0.server.TServer
TServer.AbstractServerArgs<T extends TServer.AbstractServerArgs<T>>
 
Constructor Summary
TNonblockingServer(AbstractNonblockingServer.AbstractNonblockingServerArgs args)
           
 
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.AbstractNonblockingServer
getEventHandler, serve, setServerEventHandler
 
Methods inherited from class org.apache.blur.thirdparty.thrift_0_9_0.server.TServer
isServing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TNonblockingServer

public TNonblockingServer(AbstractNonblockingServer.AbstractNonblockingServerArgs args)
Method Detail

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.