java.lang.Object
swim.io.TransportSettings
- All Implemented Interfaces:
swim.codec.Debug
Transport configuration parameters.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final longprotected final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intbacklog()Returns the maximum length of the queue of incoming connections.backlog(int backlog) Returns a copy of theseTransportSettingsconfigured with the givenbacklogfor the maximum length of the queue of incoming connections.booleanReturnstrueif theseTransportSettingscan possibly equal someotherobject.protected TransportSettingscopy(int backlog, long idleInterval, long idleTimeout) Returns a newTransportSettingsinstance with the given options.<T> swim.codec.Output<T>debug(swim.codec.Output<T> output) booleanstatic swim.structure.Form<TransportSettings>form()Returns the structuralFormofTransportSettings.inthashCode()final longReturns the number of milliseconds between transport idle checks.idleInterval(long idleInterval) Returns a copy of theseTransportSettingsconfigured with the givenidleIntervalfor transport idle checks.final longReturns the default number of idle milliseconds after which a transport should be timed out due to inactivity.idleTimeout(long idleTimeout) Returns a copy of theseTransportSettingsconfigured with the givenidleTimeoutfor transport idle timeoutsstatic TransportSettingsstandard()Returns the defaultTransportSettingsinstance.toString()swim.structure.ValuetoValue()Returns a structuralValuerepresenting 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 theseTransportSettingsconfigured with the givenbacklogfor 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 theseTransportSettingsconfigured with the givenidleIntervalfor 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 theseTransportSettingsconfigured with the givenidleTimeoutfor transport idle timeouts -
copy
Returns a newTransportSettingsinstance with the given options. Subclasses may override this method to ensure the proper class is instantiated when updating settings. -
toValue
public swim.structure.Value toValue()Returns a structuralValuerepresenting theseTransportSettings. -
canEqual
Returnstrueif theseTransportSettingscan possibly equal someotherobject. -
equals
-
hashCode
public int hashCode() -
debug
public <T> swim.codec.Output<T> debug(swim.codec.Output<T> output) - Specified by:
debugin interfaceswim.codec.Debug
-
toString
-
standard
Returns the defaultTransportSettingsinstance. -
form
Returns the structuralFormofTransportSettings.
-