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
-
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.Builder
getBufferSize, isBufferedIo, isImmediateFlush, setBufferedIo, setBufferSize, setImmediateFlush, 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 String getHost()
-
getPort
public int getPort()
-
getProtocol
public Protocol getProtocol()
-
getSslConfiguration
public SslConfiguration getSslConfiguration()
-
getImmediateFail
public boolean getImmediateFail()
-
setAdvertise
public B setAdvertise(boolean advertise)
-
setConnectTimeoutMillis
public B setConnectTimeoutMillis(int connectTimeoutMillis)
-
setImmediateFail
public B setImmediateFail(boolean immediateFail)
-
setPort
public B setPort(int port)
-
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(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()
-
getSocketOptions
public SocketOptions getSocketOptions()
-
-