OptionsSyntax
, S2ClientSyntax
, StartSyntax<S2Client>
, TracedSyntax
, WithTracerSyntax
public static class S2Client.Builder extends java.lang.Object implements S2ClientSyntax, OptionsSyntax, WithTracerSyntax
Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | Description |
---|---|---|
OptionsSyntax |
connectTimeout(java.lang.Integer timeoutInMillis) |
|
OptionsSyntax |
connectTo(S2Controller theGame) |
|
OptionsSyntax |
connectTo(java.lang.String gameListenIp,
java.lang.Integer gameListenPort) |
|
OptionsSyntax |
onConnectionLost(java.lang.Runnable callback) |
|
OptionsSyntax |
requestTimeout(java.lang.Integer timeoutInMillis) |
|
S2Client |
start() |
|
WithTracerSyntax |
traced(java.lang.Boolean traced) |
|
StartSyntax<S2Client> |
withTracer(DataFlowTracer tracer) |
public OptionsSyntax connectTo(java.lang.String gameListenIp, java.lang.Integer gameListenPort)
connectTo
in interface S2ClientSyntax
public OptionsSyntax connectTo(S2Controller theGame)
connectTo
in interface S2ClientSyntax
public OptionsSyntax requestTimeout(java.lang.Integer timeoutInMillis)
requestTimeout
in interface OptionsSyntax
public OptionsSyntax connectTimeout(java.lang.Integer timeoutInMillis)
connectTimeout
in interface OptionsSyntax
public OptionsSyntax onConnectionLost(java.lang.Runnable callback)
onConnectionLost
in interface OptionsSyntax
public WithTracerSyntax traced(java.lang.Boolean traced)
traced
in interface TracedSyntax
public StartSyntax<S2Client> withTracer(DataFlowTracer tracer)
withTracer
in interface WithTracerSyntax
public S2Client start()
start
in interface StartSyntax<S2Client>
Copyright © 2017–2018 Ocraft Project. All rights reserved.