Class 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.
    • Method Detail

      • getOnlineReaders

        public java.util.Set<java.lang.String> getOnlineReaders()
      • getRevision

        public Revision getRevision()
        Description copied from interface: Revisioned
        Returns the revision corresponding to this object.
        Specified by:
        getRevision in interface Revisioned
        Returns:
        Revision object
      • getScopedStreamName

        public java.lang.String getScopedStreamName()
        Description copied from interface: Revisioned
        Returns the scoped name of this stream used to persist this object.
        Specified by:
        getScopedStreamName in interface Revisioned
        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:
        toString in class java.lang.Object
      • isUpdatingConfig

        public boolean isUpdatingConfig()