B
- This builder class.public static class SocketAppender.Builder<B extends SocketAppender.Builder<B>> extends AbstractOutputStreamAppender.Builder<B> implements Builder<SocketAppender>
Constructor and Description |
---|
SocketAppender.Builder() |
Modifier and Type | Method and Description |
---|---|
SocketAppender |
build()
Builds the object after all configuration has been set.
|
boolean |
getAdvertise() |
int |
getConnectTimeoutMillis() |
String |
getHost() |
boolean |
getImmediateFail() |
int |
getPort() |
Protocol |
getProtocol() |
SslConfiguration |
getSslConfiguration() |
B |
withAdvertise(boolean advertise) |
B |
withConfiguration(Configuration configuration) |
B |
withConnectTimeoutMillis(int connectTimeoutMillis) |
B |
withHost(String host) |
B |
withImmediateFail(boolean immediateFail) |
B |
withPort(int port) |
B |
withProtocol(Protocol protocol) |
B |
withReconnectDelayMillis(int reconnectDelayMillis) |
B |
withSslConfiguration(SslConfiguration sslConfiguration) |
getBufferSize, isBufferedIo, isImmediateFlush, withBufferedIo, withBufferSize, withImmediateFlush
getLayout, getName, getOrCreateLayout, isIgnoreExceptions, withIgnoreExceptions, withLayout, withName
asBuilder, getFilter, withFilter
public SocketAppender build()
Builder
build
in interface Builder<SocketAppender>
public boolean getAdvertise()
public int getConnectTimeoutMillis()
public String getHost()
public int getPort()
public Protocol getProtocol()
public SslConfiguration getSslConfiguration()
public boolean getImmediateFail()
public B withAdvertise(boolean advertise)
public B withConfiguration(Configuration configuration)
public B withConnectTimeoutMillis(int connectTimeoutMillis)
public B withImmediateFail(boolean immediateFail)
public B withPort(int port)
public B withReconnectDelayMillis(int reconnectDelayMillis)
public B withSslConfiguration(SslConfiguration sslConfiguration)
Copyright © 1999-2016 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.