TcpSettings
Contents
 [
        
            Hide
        ]
    Inheritance: java.lang.Object
All Implemented Interfaces: com.groupdocs.search.scaling.configuring.INetworkSettings
public class TcpSettings implements INetworkSettings
Represents a TCP network settings.
Constructors
| Constructor | Description | 
|---|---|
| TcpSettings(int listeningPort, int sendTimeout, int receiveTimeout) | Initializes a new instance of the TcpSettings class. | 
Methods
| Method | Description | 
|---|---|
| getListeningPort() | Gets the listening port. | 
| getSendTimeout() | Gets the send timeout in milliseconds. | 
| getReceiveTimeout() | Gets the receive timeout in milliseconds. | 
TcpSettings(int listeningPort, int sendTimeout, int receiveTimeout)
public TcpSettings(int listeningPort, int sendTimeout, int receiveTimeout)
Initializes a new instance of the TcpSettings class.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| listeningPort | int | The listening port. | 
| sendTimeout | int | The send timeout in milliseconds. | 
| receiveTimeout | int | The receive timeout in milliseconds. | 
getListeningPort()
public final int getListeningPort()
Gets the listening port.
Returns: int - The listening port.
getSendTimeout()
public final int getSendTimeout()
Gets the send timeout in milliseconds.
Returns: int - The send timeout in milliseconds.
getReceiveTimeout()
public final int getReceiveTimeout()
Gets the receive timeout in milliseconds.
Returns: int - The receive timeout in milliseconds.