public abstract class io.vertx.core.net.NetworkOptions extends java.lang.Object
{
public static final int DEFAULT_SEND_BUFFER_SIZE;
public static final int DEFAULT_RECEIVE_BUFFER_SIZE;
public static final int DEFAULT_TRAFFIC_CLASS;
public static final boolean DEFAULT_REUSE_ADDRESS;
public static final boolean DEFAULT_REUSE_PORT;
public static final boolean DEFAULT_LOG_ENABLED;
public static final io.netty.handler.logging.ByteBufFormat DEFAULT_LOG_ACTIVITY_FORMAT;
private int sendBufferSize;
private int receiveBufferSize;
private int trafficClass;
private boolean reuseAddress;
private boolean logActivity;
private io.netty.handler.logging.ByteBufFormat activityLogDataFormat;
private boolean reusePort;
public void <init>()
{
io.vertx.core.net.NetworkOptions v;
io.netty.handler.logging.ByteBufFormat v;
int v, v, v;
v := @this: io.vertx.core.net.NetworkOptions;
specialinvoke v.<java.lang.Object: void <init>()>();
v = (int) -1;
v.<io.vertx.core.net.NetworkOptions: int sendBufferSize> = v;
v = (int) -1;
v.<io.vertx.core.net.NetworkOptions: int receiveBufferSize> = v;
v.<io.vertx.core.net.NetworkOptions: boolean reuseAddress> = 1;
v = (int) -1;
v.<io.vertx.core.net.NetworkOptions: int trafficClass> = v;
v.<io.vertx.core.net.NetworkOptions: boolean logActivity> = 0;
v = <io.vertx.core.net.NetworkOptions: io.netty.handler.logging.ByteBufFormat DEFAULT_LOG_ACTIVITY_FORMAT>;
v.<io.vertx.core.net.NetworkOptions: io.netty.handler.logging.ByteBufFormat activityLogDataFormat> = v;
v.<io.vertx.core.net.NetworkOptions: boolean reusePort> = 0;
return;
}
public void <init>(io.vertx.core.net.NetworkOptions)
{
io.vertx.core.net.NetworkOptions v, v;
io.netty.handler.logging.ByteBufFormat v;
int v, v, v;
boolean v, v, v;
v := @this: io.vertx.core.net.NetworkOptions;
v := @parameter: io.vertx.core.net.NetworkOptions;
specialinvoke v.<java.lang.Object: void <init>()>();
v = virtualinvoke v.<io.vertx.core.net.NetworkOptions: int getSendBufferSize()>();
v.<io.vertx.core.net.NetworkOptions: int sendBufferSize> = v;
v = virtualinvoke v.<io.vertx.core.net.NetworkOptions: int getReceiveBufferSize()>();
v.<io.vertx.core.net.NetworkOptions: int receiveBufferSize> = v;
v = virtualinvoke v.<io.vertx.core.net.NetworkOptions: boolean isReuseAddress()>();
v.<io.vertx.core.net.NetworkOptions: boolean reuseAddress> = v;
v = virtualinvoke v.<io.vertx.core.net.NetworkOptions: boolean isReusePort()>();
v.<io.vertx.core.net.NetworkOptions: boolean reusePort> = v;
v = virtualinvoke v.<io.vertx.core.net.NetworkOptions: int getTrafficClass()>();
v.<io.vertx.core.net.NetworkOptions: int trafficClass> = v;
v = v.<io.vertx.core.net.NetworkOptions: boolean logActivity>;
v.<io.vertx.core.net.NetworkOptions: boolean logActivity> = v;
v = v.<io.vertx.core.net.NetworkOptions: io.netty.handler.logging.ByteBufFormat activityLogDataFormat>;
v.<io.vertx.core.net.NetworkOptions: io.netty.handler.logging.ByteBufFormat activityLogDataFormat> = v;
return;
}
public void <init>(io.vertx.core.json.JsonObject)
{
io.vertx.core.json.JsonObject v;
io.vertx.core.net.NetworkOptions v;
v := @this: io.vertx.core.net.NetworkOptions;
v := @parameter: io.vertx.core.json.JsonObject;
specialinvoke v.<io.vertx.core.net.NetworkOptions: void <init>()>();
staticinvoke <io.vertx.core.net.NetworkOptionsConverter: void fromJson(java.lang.Iterable,io.vertx.core.net.NetworkOptions)>(v, v);
return;
}
public io.vertx.core.json.JsonObject toJson()
{
io.vertx.core.json.JsonObject v;
io.vertx.core.net.NetworkOptions v;
v := @this: io.vertx.core.net.NetworkOptions;
v = new io.vertx.core.json.JsonObject;
specialinvoke v.<io.vertx.core.json.JsonObject: void <init>()>();
staticinvoke <io.vertx.core.net.NetworkOptionsConverter: void toJson(io.vertx.core.net.NetworkOptions,io.vertx.core.json.JsonObject)>(v, v);
return v;
}
public int getSendBufferSize()
{
int v;
io.vertx.core.net.NetworkOptions v;
v := @this: io.vertx.core.net.NetworkOptions;
v = v.<io.vertx.core.net.NetworkOptions: int sendBufferSize>;
return v;
}
public io.vertx.core.net.NetworkOptions setSendBufferSize(int)
{
io.vertx.core.net.NetworkOptions v;
int v, v;
boolean v;
v := @this: io.vertx.core.net.NetworkOptions;
v := @parameter: int;
if v > 0 goto label;
v = (int) -1;
if v != v goto label;
label:
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <io.vertx.core.impl.Arguments: void require(boolean,java.lang.String)>(v, "sendBufferSize must be > 0");
v.<io.vertx.core.net.NetworkOptions: int sendBufferSize> = v;
return v;
}
public int getReceiveBufferSize()
{
int v;
io.vertx.core.net.NetworkOptions v;
v := @this: io.vertx.core.net.NetworkOptions;
v = v.<io.vertx.core.net.NetworkOptions: int receiveBufferSize>;
return v;
}
public io.vertx.core.net.NetworkOptions setReceiveBufferSize(int)
{
io.vertx.core.net.NetworkOptions v;
int v, v;
boolean v;
v := @this: io.vertx.core.net.NetworkOptions;
v := @parameter: int;
if v > 0 goto label;
v = (int) -1;
if v != v goto label;
label:
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <io.vertx.core.impl.Arguments: void require(boolean,java.lang.String)>(v, "receiveBufferSize must be > 0");
v.<io.vertx.core.net.NetworkOptions: int receiveBufferSize> = v;
return v;
}
public boolean isReuseAddress()
{
io.vertx.core.net.NetworkOptions v;
boolean v;
v := @this: io.vertx.core.net.NetworkOptions;
v = v.<io.vertx.core.net.NetworkOptions: boolean reuseAddress>;
return v;
}
public io.vertx.core.net.NetworkOptions setReuseAddress(boolean)
{
io.vertx.core.net.NetworkOptions v;
boolean v;
v := @this: io.vertx.core.net.NetworkOptions;
v := @parameter: boolean;
v.<io.vertx.core.net.NetworkOptions: boolean reuseAddress> = v;
return v;
}
public int getTrafficClass()
{
int v;
io.vertx.core.net.NetworkOptions v;
v := @this: io.vertx.core.net.NetworkOptions;
v = v.<io.vertx.core.net.NetworkOptions: int trafficClass>;
return v;
}
public io.vertx.core.net.NetworkOptions setTrafficClass(int)
{
int v, v;
io.vertx.core.net.NetworkOptions v;
v := @this: io.vertx.core.net.NetworkOptions;
v := @parameter: int;
v = (int) -1;
staticinvoke <io.vertx.core.impl.Arguments: void requireInRange(int,int,int,java.lang.String)>(v, v, 255, "trafficClass tc must be 0 <= tc <= 255");
v.<io.vertx.core.net.NetworkOptions: int trafficClass> = v;
return v;
}
public boolean getLogActivity()
{
io.vertx.core.net.NetworkOptions v;
boolean v;
v := @this: io.vertx.core.net.NetworkOptions;
v = v.<io.vertx.core.net.NetworkOptions: boolean logActivity>;
return v;
}
public io.netty.handler.logging.ByteBufFormat getActivityLogDataFormat()
{
io.vertx.core.net.NetworkOptions v;
io.netty.handler.logging.ByteBufFormat v;
v := @this: io.vertx.core.net.NetworkOptions;
v = v.<io.vertx.core.net.NetworkOptions: io.netty.handler.logging.ByteBufFormat activityLogDataFormat>;
return v;
}
public io.vertx.core.net.NetworkOptions setLogActivity(boolean)
{
io.vertx.core.net.NetworkOptions v;
boolean v;
v := @this: io.vertx.core.net.NetworkOptions;
v := @parameter: boolean;
v.<io.vertx.core.net.NetworkOptions: boolean logActivity> = v;
return v;
}
public io.vertx.core.net.NetworkOptions setActivityLogDataFormat(io.netty.handler.logging.ByteBufFormat)
{
io.vertx.core.net.NetworkOptions v;
io.netty.handler.logging.ByteBufFormat v;
v := @this: io.vertx.core.net.NetworkOptions;
v := @parameter: io.netty.handler.logging.ByteBufFormat;
v.<io.vertx.core.net.NetworkOptions: io.netty.handler.logging.ByteBufFormat activityLogDataFormat> = v;
return v;
}
public boolean isReusePort()
{
io.vertx.core.net.NetworkOptions v;
boolean v;
v := @this: io.vertx.core.net.NetworkOptions;
v = v.<io.vertx.core.net.NetworkOptions: boolean reusePort>;
return v;
}
public io.vertx.core.net.NetworkOptions setReusePort(boolean)
{
io.vertx.core.net.NetworkOptions v;
boolean v;
v := @this: io.vertx.core.net.NetworkOptions;
v := @parameter: boolean;
v.<io.vertx.core.net.NetworkOptions: boolean reusePort> = v;
return v;
}
static void <clinit>()
{
io.netty.handler.logging.ByteBufFormat v;
v = <io.netty.handler.logging.ByteBufFormat: io.netty.handler.logging.ByteBufFormat HEX_DUMP>;
<io.vertx.core.net.NetworkOptions: io.netty.handler.logging.ByteBufFormat DEFAULT_LOG_ACTIVITY_FORMAT> = v;
return;
}
}