- java.lang.Object
-
- swim.io.TransportSettings
-
-
Field Summary
Fields Modifier and Type Field Description protected int
backlog
protected long
idleInterval
protected long
idleTimeout
-
Constructor Summary
Constructors Constructor Description TransportSettings(int backlog, long idleInterval, long idleTimeout)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
backlog()
Returns the maximum length of the queue of incoming connections.TransportSettings
backlog(int backlog)
Returns a copy of theseTransportSettings
configured with the givenbacklog
for the maximum length of the queue of incoming connections.boolean
canEqual(Object other)
Returnstrue
if theseTransportSettings
can possibly equal someother
object.protected TransportSettings
copy(int backlog, long idleInterval, long idleTimeout)
Returns a newTransportSettings
instance with the given options.<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
static Form<TransportSettings>
form()
Returns the structuralForm
ofTransportSettings
.int
hashCode()
long
idleInterval()
Returns the number of milliseconds between transport idle checks.TransportSettings
idleInterval(long idleInterval)
Returns a copy of theseTransportSettings
configured with the givenidleInterval
for transport idle checks.long
idleTimeout()
Returns the default number of idle milliseconds after which a transport should be timed out due to inactivity.TransportSettings
idleTimeout(long idleTimeout)
Returns a copy of theseTransportSettings
configured with the givenidleTimeout
for transport idle timeoutsstatic TransportSettings
standard()
Returns the defaultTransportSettings
instance.String
toString()
Value
toValue()
Returns a structuralValue
representing theseTransportSettings
.
-
-
-
Method Detail
-
backlog
public final int backlog()
Returns the maximum length of the queue of incoming connections.
-
backlog
public TransportSettings backlog(int backlog)
Returns a copy of theseTransportSettings
configured with the givenbacklog
for the maximum length of the queue of incoming connections.
-
idleInterval
public final long idleInterval()
Returns the number of milliseconds between transport idle checks.
-
idleInterval
public TransportSettings idleInterval(long idleInterval)
Returns a copy of theseTransportSettings
configured with the givenidleInterval
for transport idle checks.
-
idleTimeout
public final long idleTimeout()
Returns the default number of idle milliseconds after which a transport should be timed out due to inactivity.
-
idleTimeout
public TransportSettings idleTimeout(long idleTimeout)
Returns a copy of theseTransportSettings
configured with the givenidleTimeout
for transport idle timeouts
-
copy
protected TransportSettings copy(int backlog, long idleInterval, long idleTimeout)
Returns a newTransportSettings
instance with the given options. Subclasses may override this method to ensure the proper class is instantiated when updating settings.
-
toValue
public Value toValue()
Returns a structuralValue
representing theseTransportSettings
.
-
canEqual
public boolean canEqual(Object other)
Returnstrue
if theseTransportSettings
can possibly equal someother
object.
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
standard
public static TransportSettings standard()
Returns the defaultTransportSettings
instance.
-
form
@Kind public static Form<TransportSettings> form()
Returns the structuralForm
ofTransportSettings
.
-
-