Module swim.io
Package swim.io

Class SocketSettings

  • All Implemented Interfaces:
    swim.codec.Debug

    public class SocketSettings
    extends Object
    implements swim.codec.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 swim.structure.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​(swim.codec.Output<?> output)
        Specified by:
        debug in interface swim.codec.Debug
      • standard

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

        @Kind
        public static swim.structure.Form<SocketSettings> form()
        Returns the structural Form of SocketSettings.