@Plugin(name="SocketPerformancePreferences", category="Core", printObject=true) public class SocketPerformancePreferences extends java.lang.Object implements Builder<SocketPerformancePreferences>, java.lang.Cloneable
Socket.setPerformancePreferences(int, int, int).
The Socket.setPerformancePreferences(int, int, int) API may not be implemented by a JRE.
| Modifier and Type | Field and Description |
|---|---|
private int |
bandwidth |
private int |
connectionTime |
private int |
latency |
| Constructor and Description |
|---|
SocketPerformancePreferences() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(java.net.Socket socket) |
SocketPerformancePreferences |
build()
Builds the object after all configuration has been set.
|
int |
getBandwidth() |
int |
getConnectionTime() |
int |
getLatency() |
static SocketPerformancePreferences |
newBuilder() |
void |
setBandwidth(int bandwidth) |
void |
setConnectionTime(int connectionTime) |
void |
setLatency(int latency) |
java.lang.String |
toString() |
@PluginBuilderAttribute @Required private int bandwidth
@PluginBuilderAttribute @Required private int connectionTime
@PluginBuilderAttribute @Required private int latency
@PluginBuilderFactory public static SocketPerformancePreferences newBuilder()
public void apply(java.net.Socket socket)
public SocketPerformancePreferences build()
Builderbuild in interface Builder<SocketPerformancePreferences>public int getBandwidth()
public int getConnectionTime()
public int getLatency()
public void setBandwidth(int bandwidth)
public void setConnectionTime(int connectionTime)
public void setLatency(int latency)
public java.lang.String toString()
toString in class java.lang.Object