public class IncomingSystemMessageEnvelope extends java.lang.Object implements MessageEnvelope<java.lang.Object,java.lang.Object>
MessageEnvelope
that provides additional information about its input SystemStreamPartition
and its Offset
within the SystemStreamPartition
.
Note: the Offset
is only unique and comparable within its SystemStreamPartition
.
Constructor and Description |
---|
IncomingSystemMessageEnvelope(IncomingMessageEnvelope ime)
Creates an
IncomingSystemMessageEnvelope from the IncomingMessageEnvelope . |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getKey()
Get the key for this
MessageEnvelope . |
java.lang.Object |
getMessage()
Get the message in this
MessageEnvelope . |
Offset |
getOffset() |
SystemStreamPartition |
getSystemStreamPartition() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDelete
public IncomingSystemMessageEnvelope(IncomingMessageEnvelope ime)
IncomingSystemMessageEnvelope
from the IncomingMessageEnvelope
.ime
- the IncomingMessageEnvelope
from the input system.public java.lang.Object getKey()
MessageEnvelope
MessageEnvelope
.getKey
in interface MessageEnvelope<java.lang.Object,java.lang.Object>
MessageEnvelope
public java.lang.Object getMessage()
MessageEnvelope
MessageEnvelope
.getMessage
in interface MessageEnvelope<java.lang.Object,java.lang.Object>
MessageEnvelope
public Offset getOffset()
public SystemStreamPartition getSystemStreamPartition()