Module swim.io
Package swim.io

Class TransportSettings

  • All Implemented Interfaces:
    Debug

    public class TransportSettings
    extends Object
    implements Debug
    Transport configuration parameters.
    • Field Detail

      • backlog

        protected final int backlog
      • idleInterval

        protected final long idleInterval
      • idleTimeout

        protected final long idleTimeout
    • Constructor Detail

      • TransportSettings

        public TransportSettings​(int backlog,
                                 long idleInterval,
                                 long idleTimeout)
    • 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 these TransportSettings configured with the given backlog 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 these TransportSettings configured with the given idleInterval 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 these TransportSettings configured with the given idleTimeout for transport idle timeouts
      • copy

        protected TransportSettings copy​(int backlog,
                                         long idleInterval,
                                         long idleTimeout)
        Returns a new TransportSettings 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 structural Value representing these TransportSettings.
      • canEqual

        public boolean canEqual​(Object other)
        Returns true if these TransportSettings can possibly equal some other object.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class 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 to output.
        Specified by:
        debug in interface Debug
        Returns:
        the continuation of the output.
      • standard

        public static TransportSettings standard()
        Returns the default TransportSettings instance.