Package io.pravega.client.stream.impl
Class ReaderGroupState.ReaderGroupStateInit
- java.lang.Object
-
- io.pravega.client.stream.impl.ReaderGroupState.ReaderGroupStateInit
-
- All Implemented Interfaces:
InitialUpdate<ReaderGroupState>,Update<ReaderGroupState>
- Enclosing class:
- ReaderGroupState
public static class ReaderGroupState.ReaderGroupStateInit extends java.lang.Object implements InitialUpdate<ReaderGroupState>
-
-
Constructor Summary
Constructors Constructor Description ReaderGroupStateInit(ReaderGroupConfig config, java.util.Map<SegmentWithRange,java.lang.Long> startingSegments, java.util.Map<Segment,java.lang.Long> endSegments, boolean updatingConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static io.pravega.client.stream.impl.ReaderGroupState.ReaderGroupStateInit.ReaderGroupStateInitBuilderbuilder()protected booleancanEqual(java.lang.Object other)ReaderGroupStatecreate(java.lang.String scopedStreamName, Revision revision)Returns an object of type StateT with the provided revision.booleanequals(java.lang.Object o)ReaderGroupConfiggetConfig()java.util.Map<Segment,java.lang.Long>getEndSegments()java.util.Map<SegmentWithRange,java.lang.Long>getStartingSegments()inthashCode()booleanisUpdatingConfig()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.pravega.client.state.InitialUpdate
applyTo
-
-
-
-
Constructor Detail
-
ReaderGroupStateInit
@ConstructorProperties({"config","startingSegments","endSegments","updatingConfig"}) public ReaderGroupStateInit(ReaderGroupConfig config, java.util.Map<SegmentWithRange,java.lang.Long> startingSegments, java.util.Map<Segment,java.lang.Long> endSegments, boolean updatingConfig)
-
-
Method Detail
-
create
public ReaderGroupState create(java.lang.String scopedStreamName, Revision revision)
Description copied from interface:InitialUpdateReturns an object of type StateT with the provided revision.- Specified by:
createin interfaceInitialUpdate<ReaderGroupState>- Parameters:
scopedStreamName- The name of the stream that this state is associated with.revision- The revision to use- Returns:
- A revisioned state object
-
builder
public static io.pravega.client.stream.impl.ReaderGroupState.ReaderGroupStateInit.ReaderGroupStateInitBuilder builder()
-
getConfig
public ReaderGroupConfig getConfig()
-
getStartingSegments
public java.util.Map<SegmentWithRange,java.lang.Long> getStartingSegments()
-
getEndSegments
public java.util.Map<Segment,java.lang.Long> getEndSegments()
-
isUpdatingConfig
public boolean isUpdatingConfig()
-
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
-
-