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