Class SenderEnvelope
java.lang.Object
org.graylog2.inputs.transports.netty.SenderEnvelope
Helper class to simplify envelope creation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <M,
A extends InetSocketAddress>
io.netty.channel.AddressedEnvelope<M,A> of
(M message, A sender) Returns aAddressedEnvelope
of the given message and message sender values.
-
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 aAddressedEnvelope
of the given message and message sender values.- Type Parameters:
M
- message typeA
- sender type- Parameters:
message
- the messagesender
- the sender address- Returns:
- the envelope
-