@Plugin(name="SocketPerformancePreferences", category="Core", printObject=true) public class SocketPerformancePreferences extends Object implements Builder<SocketPerformancePreferences>, Cloneable
Socket.setPerformancePreferences(int, int, int)
.
The Socket.setPerformancePreferences(int, int, int)
API may not be implemented by a JRE.
Constructor and Description |
---|
SocketPerformancePreferences() |
Modifier and Type | Method and Description |
---|---|
void |
apply(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) |
String |
toString() |
@PluginBuilderFactory public static SocketPerformancePreferences newBuilder()
public void apply(Socket socket)
public SocketPerformancePreferences build()
Builder
build
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)
Copyright © 1999-2017. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.