public class CloudEventWithSubscriptionPosition
extends java.lang.Object
implements io.cloudevents.CloudEvent
CloudEvent that also includes a SubscriptionPosition so that
it's possible to resume the stream from a particular state.| Constructor and Description |
|---|
CloudEventWithSubscriptionPosition(io.cloudevents.CloudEvent cloudEvent,
SubscriptionPosition changeStreamPosition) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getAttribute(java.lang.String attributeName) |
java.util.Set<java.lang.String> |
getAttributeNames() |
byte[] |
getData() |
java.lang.String |
getDataContentType() |
java.net.URI |
getDataSchema() |
java.lang.Object |
getExtension(java.lang.String extensionName) |
java.util.Set<java.lang.String> |
getExtensionNames() |
java.lang.String |
getId() |
java.net.URI |
getSource() |
io.cloudevents.SpecVersion |
getSpecVersion() |
SubscriptionPosition |
getStreamPosition() |
java.lang.String |
getSubject() |
java.time.OffsetDateTime |
getTime() |
java.lang.String |
getType() |
int |
hashCode() |
java.lang.String |
toString() |
public CloudEventWithSubscriptionPosition(io.cloudevents.CloudEvent cloudEvent,
SubscriptionPosition changeStreamPosition)
@Nullable public byte[] getData()
getData in interface io.cloudevents.CloudEventpublic io.cloudevents.SpecVersion getSpecVersion()
getSpecVersion in interface io.cloudevents.CloudEventAttributespublic java.lang.String getId()
getId in interface io.cloudevents.CloudEventAttributespublic java.lang.String getType()
getType in interface io.cloudevents.CloudEventAttributespublic java.net.URI getSource()
getSource in interface io.cloudevents.CloudEventAttributes@Nullable public java.lang.String getDataContentType()
getDataContentType in interface io.cloudevents.CloudEventAttributes@Nullable public java.net.URI getDataSchema()
getDataSchema in interface io.cloudevents.CloudEventAttributes@Nullable public java.lang.String getSubject()
getSubject in interface io.cloudevents.CloudEventAttributes@Nullable public java.time.OffsetDateTime getTime()
getTime in interface io.cloudevents.CloudEventAttributes@Nullable
public java.lang.Object getAttribute(java.lang.String attributeName)
throws java.lang.IllegalArgumentException
getAttribute in interface io.cloudevents.CloudEventAttributesjava.lang.IllegalArgumentExceptionpublic java.util.Set<java.lang.String> getAttributeNames()
getAttributeNames in interface io.cloudevents.CloudEventAttributes@Nullable public java.lang.Object getExtension(java.lang.String extensionName)
getExtension in interface io.cloudevents.CloudEventExtensionspublic java.util.Set<java.lang.String> getExtensionNames()
getExtensionNames in interface io.cloudevents.CloudEventExtensionspublic SubscriptionPosition getStreamPosition()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2020. All rights reserved.