Module swim.io
Package swim.io

Class SocketSettings

  • All Implemented Interfaces:
    Debug

    public class SocketSettings
    extends Object
    implements Debug
    Socket configuration parameters.
    • Method Detail

      • tcpSettings

        public TcpSettings tcpSettings()
        Returns the TCP socket configuration.
      • tcpSettings

        public SocketSettings tcpSettings​(TcpSettings tcpSettings)
        Returns a copy of these SocketSettings configured with the given tcpSettings.
      • tlsSettings

        public TlsSettings tlsSettings()
        Returns the TLS socket configuration.
      • tlsSettings

        public SocketSettings tlsSettings​(TlsSettings tlsSettings)
        Returns a copy of these SocketSettings configured with the given tlsSettings.
      • copy

        protected SocketSettings copy​(TcpSettings tcpSettings,
                                      TlsSettings tlsSettings)
        Returns a new SocketSettings 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 SocketSettings.
      • canEqual

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

        public int hashCode()
        Overrides:
        hashCode in class Object
      • debug

        public void debug​(Output<?> 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
      • standard

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