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 connect timeout
      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 working threads. This corresponds with the number of connections being opened. Defaults to 1.
      Parameters:
      workerThreads - number of worker threads.