Class FixedSequenceGroup


  • public final class FixedSequenceGroup
    extends Sequence
    Hides a group of Sequences behind a single Sequence
    • Constructor Detail

      • FixedSequenceGroup

        public FixedSequenceGroup​(Sequence[] sequences)
        Constructor
        Parameters:
        sequences - the list of sequences to be tracked under this sequence group
    • Method Detail

      • get

        public long get()
        Get the minimum sequence value for the group.
        Overrides:
        get in class Sequence
        Returns:
        the minimum sequence value for the group.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Sequence
      • set

        public void set​(long value)
        Not supported.
        Overrides:
        set in class Sequence
        Parameters:
        value - The new value for the sequence.
      • compareAndSet

        public boolean compareAndSet​(long expectedValue,
                                     long newValue)
        Not supported.
        Overrides:
        compareAndSet in class Sequence
        Parameters:
        expectedValue - The expected current value.
        newValue - The value to update to.
        Returns:
        true if the operation succeeds, false otherwise.
      • incrementAndGet

        public long incrementAndGet()
        Not supported.
        Overrides:
        incrementAndGet in class Sequence
        Returns:
        The value after the increment
      • addAndGet

        public long addAndGet​(long increment)
        Not supported.
        Overrides:
        addAndGet in class Sequence
        Parameters:
        increment - The value to add to the sequence.
        Returns:
        The value after the increment.