Class SocketAppender.AbstractBuilder<B extends SocketAppender.AbstractBuilder<B>>

  • Type Parameters:
    B - The type to build.
    Direct Known Subclasses:
    SocketAppender.Builder, SyslogAppender.Builder
    Enclosing class:
    SocketAppender

    public abstract static class SocketAppender.AbstractBuilder<B extends SocketAppender.AbstractBuilder<B>>
    extends AbstractOutputStreamAppender.Builder<B>
    Subclasses can extend this abstract Builder.

    Defaults

    • host: "localhost"
    • protocol: "TCP"

    Changes

    • Removed deprecated "delayMillis", use "reconnectionDelayMillis".
    • Removed deprecated "reconnectionDelay", use "reconnectionDelayMillis".
    • Constructor Detail

      • AbstractBuilder

        public AbstractBuilder()
    • Method Detail

      • getAdvertise

        public boolean getAdvertise()
      • getConnectTimeoutMillis

        public int getConnectTimeoutMillis()
      • getHost

        public java.lang.String getHost()
      • getPort

        public int getPort()
      • getProtocol

        public Protocol getProtocol()
      • getImmediateFail

        public boolean getImmediateFail()
      • setAdvertise

        public B setAdvertise​(boolean advertise)
      • setConnectTimeoutMillis

        public B setConnectTimeoutMillis​(int connectTimeoutMillis)
      • setHost

        public B setHost​(java.lang.String host)
      • setImmediateFail

        public B setImmediateFail​(boolean immediateFail)
      • setPort

        public B setPort​(int port)
      • setProtocol

        public B setProtocol​(Protocol protocol)
      • setReconnectDelayMillis

        public B setReconnectDelayMillis​(int reconnectDelayMillis)
      • setSocketOptions

        public B setSocketOptions​(SocketOptions socketOptions)
      • setSslConfiguration

        public B setSslConfiguration​(SslConfiguration sslConfiguration)
      • withAdvertise

        @Deprecated
        public B withAdvertise​(boolean advertise)
        Deprecated.
      • withConnectTimeoutMillis

        @Deprecated
        public B withConnectTimeoutMillis​(int connectTimeoutMillis)
        Deprecated.
      • withHost

        @Deprecated
        public B withHost​(java.lang.String host)
        Deprecated.
      • withImmediateFail

        @Deprecated
        public B withImmediateFail​(boolean immediateFail)
        Deprecated.
      • withPort

        @Deprecated
        public B withPort​(int port)
        Deprecated.
      • withProtocol

        @Deprecated
        public B withProtocol​(Protocol protocol)
        Deprecated.
      • withReconnectDelayMillis

        @Deprecated
        public B withReconnectDelayMillis​(int reconnectDelayMillis)
        Deprecated.
      • withSocketOptions

        @Deprecated
        public B withSocketOptions​(SocketOptions socketOptions)
        Deprecated.
      • withSslConfiguration

        @Deprecated
        public B withSslConfiguration​(SslConfiguration sslConfiguration)
        Deprecated.
      • getReconnectDelayMillis

        public int getReconnectDelayMillis()