Class CommitEvent
- java.lang.Object
-
- io.pravega.shared.controller.event.CommitEvent
-
- All Implemented Interfaces:
ControllerEvent
public class CommitEvent extends java.lang.Object implements ControllerEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommitEvent.Serializer
-
Constructor Summary
Constructors Constructor Description CommitEvent(java.lang.String scope, java.lang.String stream, int epoch)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static io.pravega.shared.controller.event.CommitEvent.CommitEventBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)intgetEpoch()java.lang.StringgetKey()Method to get routing key for the event.java.lang.StringgetScope()java.lang.StringgetStream()inthashCode()java.util.concurrent.CompletableFuture<java.lang.Void>process(RequestProcessor processor)java.lang.StringtoString()
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Description copied from interface:ControllerEventMethod to get routing key for the event.- Specified by:
getKeyin interfaceControllerEvent- Returns:
- return the routing key that should be used.
-
process
public java.util.concurrent.CompletableFuture<java.lang.Void> process(RequestProcessor processor)
- Specified by:
processin interfaceControllerEvent
-
builder
public static io.pravega.shared.controller.event.CommitEvent.CommitEventBuilder builder()
-
getScope
public java.lang.String getScope()
-
getStream
public java.lang.String getStream()
-
getEpoch
public int getEpoch()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-