public class SpreadOptions extends Object
Constructor and Description |
---|
SpreadOptions(String host,
int port,
boolean tcpNoDelay)
Creates a new instance for the specified options.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getHost()
Returns the host of the spread daemon.
|
int |
getPort()
Returns the port of the spread daemon.
|
int |
hashCode() |
boolean |
isTcpNoDelay()
Indicates whether to use tcpnodelay for the connection to the daemon or
not.
|
public SpreadOptions(String host, int port, boolean tcpNoDelay)
host
- the host name or IP address of the spread daemon. Must not be
null
or empty.port
- the port of the spread daemon, > 0tcpNoDelay
- whether to connect with tcpnodelay or notIllegalArgumentException
- one of the given arguments does not meet the requirementspublic String getHost()
null
, not emptypublic int getPort()
public boolean isTcpNoDelay()
true
for using tcpnodelayCopyright © 2018 CoR-Lab. All rights reserved.