public static enum Connection.Socket.Property extends Enum<Connection.Socket.Property>
ConnectionSpec#getSocketProperty(SocketProperty)
Enum Constant and Description |
---|
SO_PREF_BANDWIDTH
Socket performance preferences.
|
SO_PREF_CONN_TIME
Socket performance preferences.
|
SO_PREF_LATENCY
Socket performance preferences.
|
SO_RCVBUF
corresponds to SO_RCVBUF flag.
|
SO_SNDBUF
Corresponds to
SO_SNDBUF flag. |
SO_TIMEOUT
corresponds to SO_TIMEOUT flag.
|
Modifier and Type | Method and Description |
---|---|
static Connection.Socket.Property |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Connection.Socket.Property[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Connection.Socket.Property SO_SNDBUF
SO_SNDBUF
flag. see Socket#setSendBufferSize(int)
expected value is an int
or an Integer
.
public static final Connection.Socket.Property SO_RCVBUF
Socket#setReceiveBufferSize(int)
public static final Connection.Socket.Property SO_TIMEOUT
Socket#setSoTimeout(int)
public static final Connection.Socket.Property SO_PREF_CONN_TIME
This property will be used in conjunction with other associated properties.
public static final Connection.Socket.Property SO_PREF_LATENCY
This property will be used in conjunction with other associated properties.
public static final Connection.Socket.Property SO_PREF_BANDWIDTH
This property will be used in conjunction with other associated properties.
public static Connection.Socket.Property[] values()
for (Connection.Socket.Property c : Connection.Socket.Property.values()) System.out.println(c);
public static Connection.Socket.Property valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2009–2018. All rights reserved.