public class ResilentSocketOutputStream
extends ch.qos.logback.core.recovery.ResilientOutputStreamBase
OutputStream.
Automatically tries to reconnect to the server if it encounters errors during writing
data via a TCP connection.| Constructor and Description |
|---|
ResilentSocketOutputStream(String host,
int port,
int connectionTimeoutMs,
int sendBufferSize,
SocketFactory socketFactory)
Creates a new stream based on the socket configuration.
|
addStatus, close, flush, getContext, postIOFailure, setContext, write, writewritepublic ResilentSocketOutputStream(String host, int port, int connectionTimeoutMs, int sendBufferSize, SocketFactory socketFactory)
host - The host or an IP address of the server.port - The port on the server which accepts TCP connections.connectionTimeoutMs - The timeout for establishing a new TCP connection.sendBufferSize - The size of the send buffer of the socket stream in bytes.socketFactory - The factory for customizing the client socket.Copyright © 2018. All rights reserved.