Class FixedSequenceGroup


  • public final class FixedSequenceGroup
    extends Sequence
    Hides a group of Sequences behind a single Sequence
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long p1  
      protected long p10  
      protected long p11  
      protected long p12  
      protected long p13  
      protected long p14  
      protected long p15  
      protected long p2  
      protected long p3  
      protected long p4  
      protected long p5  
      protected long p6  
      protected long p7  
      protected long p9  
      protected long value  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long addAndGet​(long increment)
      Not supported.
      boolean compareAndSet​(long expectedValue, long newValue)
      Not supported.
      long get()
      Get the minimum sequence value for the group.
      long incrementAndGet()
      Not supported.
      void set​(long value)
      Not supported.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • p9

        protected long p9
      • p10

        protected long p10
      • p11

        protected long p11
      • p12

        protected long p12
      • p13

        protected long p13
      • p14

        protected long p14
      • p15

        protected long p15
      • value

        protected volatile long value
      • p1

        protected long p1
      • p2

        protected long p2
      • p3

        protected long p3
      • p4

        protected long p4
      • p5

        protected long p5
      • p6

        protected long p6
      • p7

        protected long p7
    • 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.