org.apache.cassandra.thrift
Class TCustomServerSocket
java.lang.Object
org.apache.thrift.transport.TServerTransport
org.apache.thrift.transport.TServerSocket
org.apache.cassandra.thrift.TCustomServerSocket
public class TCustomServerSocket
- extends org.apache.thrift.transport.TServerSocket
Extends Thrift's TServerSocket to allow customization of various desirable
TCP properties.
|
Constructor Summary |
TCustomServerSocket(java.net.InetSocketAddress bindAddr,
boolean keepAlive,
java.lang.Integer sendBufferSize,
java.lang.Integer recvBufferSize)
Allows fine-tuning of the server socket including keep-alive, reuse of addresses, send and receive buffer sizes. |
|
Method Summary |
protected org.apache.thrift.transport.TSocket |
acceptImpl()
|
| Methods inherited from class org.apache.thrift.transport.TServerSocket |
close, getServerSocket, interrupt, listen |
| Methods inherited from class org.apache.thrift.transport.TServerTransport |
accept |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TCustomServerSocket
public TCustomServerSocket(java.net.InetSocketAddress bindAddr,
boolean keepAlive,
java.lang.Integer sendBufferSize,
java.lang.Integer recvBufferSize)
throws org.apache.thrift.transport.TTransportException
- Allows fine-tuning of the server socket including keep-alive, reuse of addresses, send and receive buffer sizes.
- Parameters:
bindAddr - keepAlive - sendBufferSize - recvBufferSize -
- Throws:
org.apache.thrift.transport.TTransportException
acceptImpl
protected org.apache.thrift.transport.TSocket acceptImpl()
throws org.apache.thrift.transport.TTransportException
- Overrides:
acceptImpl in class org.apache.thrift.transport.TServerSocket
- Throws:
org.apache.thrift.transport.TTransportException
Copyright © 2011 The Apache Software Foundation