- java.lang.Object
-
- swim.io.TransportSettings
-
-
Field Summary
Fields Modifier and Type Field Description protected intbacklogprotected longidleIntervalprotected longidleTimeout
-
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 intbacklog()Returns the maximum length of the queue of incoming connections.TransportSettingsbacklog(int backlog)Returns a copy of theseTransportSettingsconfigured with the givenbacklogfor the maximum length of the queue of incoming connections.booleancanEqual(Object other)Returnstrueif theseTransportSettingscan possibly equal someotherobject.protected TransportSettingscopy(int backlog, long idleInterval, long idleTimeout)Returns a newTransportSettingsinstance with the given options.<T> Output<T>debug(Output<T> output)Writes a developer readable, debug-formatted string representation of this object tooutput.booleanequals(Object other)static Form<TransportSettings>form()Returns the structuralFormofTransportSettings.inthashCode()longidleInterval()Returns the number of milliseconds between transport idle checks.TransportSettingsidleInterval(long idleInterval)Returns a copy of theseTransportSettingsconfigured with the givenidleIntervalfor transport idle checks.longidleTimeout()Returns the default number of idle milliseconds after which a transport should be timed out due to inactivity.TransportSettingsidleTimeout(long idleTimeout)Returns a copy of theseTransportSettingsconfigured with the givenidleTimeoutfor transport idle timeoutsstatic TransportSettingsstandard()Returns the defaultTransportSettingsinstance.StringtoString()ValuetoValue()Returns a structuralValuerepresenting 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 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
public TransportSettings idleInterval(long 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
public TransportSettings idleTimeout(long idleTimeout)
Returns a copy of theseTransportSettingsconfigured with the givenidleTimeoutfor transport idle timeouts
-
copy
protected TransportSettings copy(int backlog, long idleInterval, long idleTimeout)
Returns a newTransportSettingsinstance 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 structuralValuerepresenting theseTransportSettings.
-
canEqual
public boolean canEqual(Object other)
Returnstrueif theseTransportSettingscan possibly equal someotherobject.
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
standard
public static TransportSettings standard()
Returns the defaultTransportSettingsinstance.
-
form
@Kind public static Form<TransportSettings> form()
Returns the structuralFormofTransportSettings.
-
-