Class NettyTLSSyslogSenderImpl
java.lang.Object
org.openehealth.ipf.commons.audit.protocol.RFC5424Protocol
org.openehealth.ipf.commons.audit.protocol.RFC5425Protocol
org.openehealth.ipf.commons.audit.protocol.NioTLSSyslogSenderImpl<io.netty.channel.ChannelFuture, NettyTLSSyslogSenderImpl.NettyDestination>
org.openehealth.ipf.commons.audit.protocol.NettyTLSSyslogSenderImpl
- All Implemented Interfaces:
AuditTransmissionProtocol
public class NettyTLSSyslogSenderImpl
extends NioTLSSyslogSenderImpl<io.netty.channel.ChannelFuture, NettyTLSSyslogSenderImpl.NettyDestination>
Simple Netty client implementation of RFC 5425 TLS syslog transport
for sending audit messages to an Audit Record Repository that implements TLS syslog.
Multiple messages may be sent over the same socket.
- Since:
- 3.7
- Author:
- Christian Ohr
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDestination abstraction for NettyNested classes/interfaces inherited from class NioTLSSyslogSenderImpl
NioTLSSyslogSenderImpl.Destination<H> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmakeDestination(TlsParameters tlsParameters, String host, int port, boolean logging) voidsetConnectTimeout(int value, TimeUnit timeUnit) Sets the timeout for establishing the connection, including the TLS handshake.voidsetSendTimeout(int value, TimeUnit timeUnit) Sets the send timeoutvoidsetWorkerThreads(int workerThreads) Set the number of worker threads of the event loop.Methods inherited from class NioTLSSyslogSenderImpl
customizeDestination, send, setLoggingEnabled, shutdownMethods inherited from class RFC5425Protocol
getTransportPayloadMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AuditTransmissionProtocol
send
-
Constructor Details
-
NettyTLSSyslogSenderImpl
-
-
Method Details
-
getTransportName
- Returns:
- name of the AuditTransmissionProtocol
-
makeDestination
protected NettyTLSSyslogSenderImpl.NettyDestination makeDestination(TlsParameters tlsParameters, String host, int port, boolean logging) - Specified by:
makeDestinationin classNioTLSSyslogSenderImpl<io.netty.channel.ChannelFuture, NettyTLSSyslogSenderImpl.NettyDestination>
-
setConnectTimeout
Sets the timeout for establishing the connection, including the TLS handshake. Defaults to 5 seconds.- Parameters:
value- time valuetimeUnit- time unit
-
setSendTimeout
Sets the send timeout- Parameters:
value- time valuetimeUnit- time unit
-
setWorkerThreads
public void setWorkerThreads(int workerThreads) Set the number of worker threads of the event loop. As there is only one connection per Audit Record Repository, which is always served by one thread, more threads only make a difference when auditing to several repositories. Defaults to 1.- Parameters:
workerThreads- number of worker threads.
-