public class GelfTCPSSLSender extends GelfTCPSender
GelfSender.CONNECTION_TIMEOUT, KEEPALIVE, READ_TIMEOUT, RETRIESINITIAL_BUFFER_SIZE, PROPERTY_BUFFER_SIZE| Constructor and Description |
|---|
GelfTCPSSLSender(String host,
int port,
int connectTimeoutMs,
int readTimeoutMs,
int deliveryAttempts,
boolean keepAlive,
ErrorReporter errorReporter,
SSLContext sslContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the sender and free resources.
|
protected boolean |
connect() |
protected boolean |
isConnected() |
protected void |
write(ByteBuffer gelfBuffer) |
createSocketChannel, isConnected, sendMessagechannel, getHost, getPort, isShutdown, reportError, setChannelpublic GelfTCPSSLSender(String host, int port, int connectTimeoutMs, int readTimeoutMs, int deliveryAttempts, boolean keepAlive, ErrorReporter errorReporter, SSLContext sslContext) throws IOException
host - the host, must not be null.port - the port.connectTimeoutMs - connection timeout, in TimeUnit.MILLISECONDS.readTimeoutMs - read timeout, in TimeUnit.MILLISECONDS.deliveryAttempts - number of delivery attempts.keepAlive - true to enable TCP keep-alive.errorReporter - the error reporter, must not be null.sslContext - the SSL context, must not be null.IOException - in case of I/O errorsprotected boolean connect()
throws IOException
connect in class GelfTCPSenderIOExceptionprotected boolean isConnected()
throws IOException
isConnected in class AbstractNioSender<SocketChannel>IOExceptionprotected void write(ByteBuffer gelfBuffer) throws IOException
write in class GelfTCPSenderIOExceptionpublic void close()
GelfSenderclose in interface GelfSenderclose in interface Closeableclose in interface AutoCloseableclose in class AbstractNioSender<SocketChannel>Copyright © 2013-2016. All Rights Reserved.