Class SocketAppender.AbstractBuilder<B extends SocketAppender.AbstractBuilder<B>>
- java.lang.Object
-
- org.apache.logging.log4j.core.filter.AbstractFilterable.Builder<B>
-
- org.apache.logging.log4j.core.appender.AbstractAppender.Builder<B>
-
- org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.Builder<B>
-
- org.apache.logging.log4j.core.appender.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 Summary
Constructors Constructor Description AbstractBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAdvertise()intgetConnectTimeoutMillis()java.lang.StringgetHost()booleangetImmediateFail()intgetPort()ProtocolgetProtocol()intgetReconnectDelayMillis()SocketOptionsgetSocketOptions()SslConfigurationgetSslConfiguration()BwithAdvertise(boolean advertise)BwithConnectTimeoutMillis(int connectTimeoutMillis)BwithHost(java.lang.String host)BwithImmediateFail(boolean immediateFail)BwithPort(int port)BwithProtocol(Protocol protocol)BwithReconnectDelayMillis(int reconnectDelayMillis)BwithSocketOptions(SocketOptions socketOptions)BwithSslConfiguration(SslConfiguration sslConfiguration)-
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.Builder
getBufferSize, isBufferedIo, isImmediateFlush, withBufferedIo, withBufferSize, withImmediateFlush
-
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender.Builder
getConfiguration, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, setIgnoreExceptions, setLayout, setName, withConfiguration, withIgnoreExceptions, withLayout, withName
-
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable.Builder
asBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilter
-
-
-
-
Method Detail
-
getAdvertise
public boolean getAdvertise()
-
getConnectTimeoutMillis
public int getConnectTimeoutMillis()
-
getHost
public java.lang.String getHost()
-
getPort
public int getPort()
-
getProtocol
public Protocol getProtocol()
-
getSslConfiguration
public SslConfiguration getSslConfiguration()
-
getImmediateFail
public boolean getImmediateFail()
-
withAdvertise
public B withAdvertise(boolean advertise)
-
withConnectTimeoutMillis
public B withConnectTimeoutMillis(int connectTimeoutMillis)
-
withHost
public B withHost(java.lang.String host)
-
withImmediateFail
public B withImmediateFail(boolean immediateFail)
-
withPort
public B withPort(int port)
-
withReconnectDelayMillis
public B withReconnectDelayMillis(int reconnectDelayMillis)
-
withSocketOptions
public B withSocketOptions(SocketOptions socketOptions)
-
withSslConfiguration
public B withSslConfiguration(SslConfiguration sslConfiguration)
-
getReconnectDelayMillis
public int getReconnectDelayMillis()
-
getSocketOptions
public SocketOptions getSocketOptions()
-
-