| Package | Description |
|---|---|
| com.facebook.swift.service |
| Modifier and Type | Method and Description |
|---|---|
ThriftServerConfig |
ThriftServerConfig.setAcceptBacklog(int acceptBacklog)
Sets the number of pending connections that the
ServerSocket will
queue up before the server process can actually accept them. |
ThriftServerConfig |
ThriftServerConfig.setAcceptorThreadCount(int acceptorThreadCount) |
ThriftServerConfig |
ThriftServerConfig.setBindAddress(String bindAddress) |
ThriftServerConfig |
ThriftServerConfig.setConnectionLimit(int connectionLimit)
Sets an upper bound on the number of concurrent connections the server will accept.
|
ThriftServerConfig |
ThriftServerConfig.setIdleConnectionTimeout(io.airlift.units.Duration idleConnectionTimeout)
Sets a timeout period between receiving requests from a client connection.
|
ThriftServerConfig |
ThriftServerConfig.setIoThreadCount(int ioThreadCount) |
ThriftServerConfig |
ThriftServerConfig.setMaxFrameSize(io.airlift.units.DataSize maxFrameSize)
Sets a maximum frame size
|
ThriftServerConfig |
ThriftServerConfig.setMaxQueuedRequests(Integer maxQueuedRequests)
Sets the maximum number of received requests that will wait in the queue to be executed.
|
ThriftServerConfig |
ThriftServerConfig.setMaxQueuedResponsesPerConnection(int maxQueuedResponsesPerConnection)
Sets the maximum number of responses that may accumulate per connection before the connection
starts blocking reads (to avoid building up limitless queued responses).
|
ThriftServerConfig |
ThriftServerConfig.setPort(int port) |
ThriftServerConfig |
ThriftServerConfig.setProtocolName(String protocolName)
Sets the name of the protocol that this server will speak.
|
ThriftServerConfig |
ThriftServerConfig.setQueueTimeout(io.airlift.units.Duration queueTimeout)
Sets a timeout period between receiving a request and the pulling the request off the queue.
|
ThriftServerConfig |
ThriftServerConfig.setTaskExpirationTimeout(io.airlift.units.Duration taskExpirationTimeout)
Sets a timeout period between receiving a request and the completion of that request.
|
ThriftServerConfig |
ThriftServerConfig.setTrafficClass(int trafficClass) |
ThriftServerConfig |
ThriftServerConfig.setTransportName(String transportName)
Sets the name of the transport (frame codec) that this server will handle.
|
ThriftServerConfig |
ThriftServerConfig.setWorkerExecutor(ExecutorService workerExecutor)
Sets the executor that will be used to process thrift requests after they arrive.
|
ThriftServerConfig |
ThriftServerConfig.setWorkerExecutorKey(String workerExecutorKey)
Sets the key for locating an
ExecutorService from the
mapped executors installed by Guice modules. |
ThriftServerConfig |
ThriftServerConfig.setWorkerThreads(int workerThreads)
Sets the number of worker threads that will be created for processing thrift requests after
they have arrived.
|
| Constructor and Description |
|---|
ThriftServer(com.facebook.nifty.processor.NiftyProcessor processor,
ThriftServerConfig config) |
ThriftServer(com.facebook.nifty.processor.NiftyProcessor processor,
ThriftServerConfig config,
org.jboss.netty.util.Timer timer) |
ThriftServer(com.facebook.nifty.processor.NiftyProcessor processor,
ThriftServerConfig config,
org.jboss.netty.util.Timer timer,
Map<String,com.facebook.nifty.codec.ThriftFrameCodecFactory> availableFrameCodecFactories,
Map<String,com.facebook.nifty.duplex.TDuplexProtocolFactory> availableProtocolFactories,
Map<String,ExecutorService> availableWorkerExecutors,
com.facebook.nifty.core.NiftySecurityFactory securityFactory,
com.facebook.nifty.ssl.SslServerConfiguration sslServerConfiguration,
com.facebook.nifty.ssl.TransportAttachObserver transportAttachObserver) |
ThriftServer(com.facebook.nifty.processor.NiftyProcessor processor,
ThriftServerConfig config,
org.jboss.netty.util.Timer timer,
Map<String,com.facebook.nifty.codec.ThriftFrameCodecFactory> availableFrameCodecFactories,
Map<String,com.facebook.nifty.duplex.TDuplexProtocolFactory> availableProtocolFactories,
Map<String,ExecutorService> availableWorkerExecutors,
ThriftServer.NiftySecurityFactoryHolder securityFactoryHolder,
ThriftServer.SslServerConfigurationHolder sslServerConfigurationHolder,
ThriftServer.TransportAttachObserverHolder transportAttachObserverHolder) |
Copyright © 2012-2016 Facebook, Inc.. All Rights Reserved.