Class SenderEnvelope

java.lang.Object
org.graylog2.inputs.transports.netty.SenderEnvelope

public class SenderEnvelope extends Object
Helper class to simplify envelope creation.
  • Constructor Details

    • SenderEnvelope

      public SenderEnvelope()
  • Method Details

    • of

      public static <M, A extends InetSocketAddress> io.netty.channel.AddressedEnvelope<M,A> of(M message, A sender)
      Returns a AddressedEnvelope of the given message and message sender values.
      Type Parameters:
      M - message type
      A - sender type
      Parameters:
      message - the message
      sender - the sender address
      Returns:
      the envelope