Package io.pravega.client.stream.impl
Class ReaderGroupState
- java.lang.Object
-
- io.pravega.client.stream.impl.ReaderGroupState
-
- All Implemented Interfaces:
Revisioned
public class ReaderGroupState extends java.lang.Object implements Revisioned
This class encapsulates the state machine of a reader group. The class represents the full state, and each of the nested classes are state transitions that can occur.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReaderGroupState.ReaderGroupInitSerializerstatic classReaderGroupState.ReaderGroupStateInitstatic classReaderGroupState.ReaderGroupUpdateSerializer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReaderGroupConfiggetConfig()intgetNumberOfSegments()Returns the number of segments currently being read from and that are unassigned within the reader group.java.util.Set<java.lang.String>getOnlineReaders()RevisiongetRevision()Returns the revision corresponding to this object.java.lang.StringgetScopedStreamName()Returns the scoped name of this stream used to persist this object.booleanisEndOfData()This functions returns true if the readers part of reader group for sealed streams have completely read the data.booleanisUpdatingConfig()java.lang.StringtoString()
-
-
-
Method Detail
-
getOnlineReaders
public java.util.Set<java.lang.String> getOnlineReaders()
-
getRevision
public Revision getRevision()
Description copied from interface:RevisionedReturns the revision corresponding to this object.- Specified by:
getRevisionin interfaceRevisioned- Returns:
- Revision object
-
getScopedStreamName
public java.lang.String getScopedStreamName()
Description copied from interface:RevisionedReturns the scoped name of this stream used to persist this object.- Specified by:
getScopedStreamNamein interfaceRevisioned- Returns:
- String indicating full stream name including its scope appended to it
-
getNumberOfSegments
public int getNumberOfSegments()
Returns the number of segments currently being read from and that are unassigned within the reader group.- Returns:
- Number of segments.
-
isEndOfData
public boolean isEndOfData()
This functions returns true if the readers part of reader group for sealed streams have completely read the data.- Returns:
- true if end of data. false if there are segments to be read from.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getConfig
public ReaderGroupConfig getConfig()
-
isUpdatingConfig
public boolean isUpdatingConfig()
-
-