public class OutgoingMessageEnvelope
extends java.lang.Object
SystemStream
via the appropriate SystemProducer
from the user's StreamTask
. StreamTasks consume from their input streams via their
process method and write to their output streams by sending OutgoingMessageEnvelopes via the provided MessageCollector
Constructor and Description |
---|
OutgoingMessageEnvelope(SystemStream systemStream,
java.lang.Object message)
Constructs a new OutgoingMessageEnvelope from specified components.
|
OutgoingMessageEnvelope(SystemStream systemStream,
java.lang.Object key,
java.lang.Object message)
Constructs a new OutgoingMessageEnvelope from specified components.
|
OutgoingMessageEnvelope(SystemStream systemStream,
java.lang.Object partitionKey,
java.lang.Object key,
java.lang.Object message)
Constructs a new OutgoingMessageEnvelope from specified components.
|
OutgoingMessageEnvelope(SystemStream systemStream,
java.lang.String keySerializerName,
java.lang.String messageSerializerName,
java.lang.Object partitionKey,
java.lang.Object key,
java.lang.Object message)
Constructs a new OutgoingMessageEnvelope from specified components.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getKey() |
java.lang.String |
getKeySerializerName() |
java.lang.Object |
getMessage() |
java.lang.String |
getMessageSerializerName() |
java.lang.Object |
getPartitionKey() |
SystemStream |
getSystemStream() |
int |
hashCode() |
java.lang.String |
toString() |
public OutgoingMessageEnvelope(SystemStream systemStream, java.lang.String keySerializerName, java.lang.String messageSerializerName, java.lang.Object partitionKey, java.lang.Object key, java.lang.Object message)
systemStream
- Object representing the appropriate stream of which this envelope will be sent on.keySerializerName
- String representing the serializer used for serializing this envelope's key.messageSerializerName
- String representing the serializer used for serializing this envelope's message.partitionKey
- A key representing which partition of the systemStream to send this envelope on.key
- A deserialized key to be used for the message.message
- A deserialized message to be sent in this envelope.public OutgoingMessageEnvelope(SystemStream systemStream, java.lang.Object partitionKey, java.lang.Object key, java.lang.Object message)
systemStream
- Object representing the appropriate stream of which this envelope will be sent on.partitionKey
- A key representing which partition of the systemStream to send this envelope on.key
- A deserialized key to be used for the message.message
- A deserialized message to be sent in this envelope.public OutgoingMessageEnvelope(SystemStream systemStream, java.lang.Object key, java.lang.Object message)
systemStream
- Object representing the appropriate stream of which this envelope will be sent on.key
- A deserialized key to be used for the message.message
- A deserialized message to be sent in this envelope.public OutgoingMessageEnvelope(SystemStream systemStream, java.lang.Object message)
systemStream
- Object representing the appropriate stream of which this envelope will be sent on.message
- A deserialized message to be sent in this envelope.public SystemStream getSystemStream()
public java.lang.String getKeySerializerName()
public java.lang.String getMessageSerializerName()
public java.lang.Object getPartitionKey()
public java.lang.Object getKey()
public java.lang.Object getMessage()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object