Class 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
  • Constructor Details

    • NettyTLSSyslogSenderImpl

      public NettyTLSSyslogSenderImpl(TlsParameters tlsParameters)
  • Method Details

    • getTransportName

      public String getTransportName()
      Returns:
      name of the AuditTransmissionProtocol
    • makeDestination

      protected NettyTLSSyslogSenderImpl.NettyDestination makeDestination(TlsParameters tlsParameters, String host, int port, boolean logging)
      Specified by:
      makeDestination in class NioTLSSyslogSenderImpl<io.netty.channel.ChannelFuture, NettyTLSSyslogSenderImpl.NettyDestination>
    • setConnectTimeout

      public void setConnectTimeout(int value, TimeUnit timeUnit)
      Sets the timeout for establishing the connection, including the TLS handshake. Defaults to 5 seconds.
      Parameters:
      value - time value
      timeUnit - time unit
    • setSendTimeout

      public void setSendTimeout(int value, TimeUnit timeUnit)
      Sets the send timeout
      Parameters:
      value - time value
      timeUnit - 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.