Class OffsetValue.DefaultOffsetValue<O,V>

java.lang.Object
org.wildfly.clustering.server.offset.Value.AbstractValue<V>
org.wildfly.clustering.server.offset.OffsetValue.DefaultOffsetValue<O,V>
All Implemented Interfaces:
Supplier<V>, OffsetValue<V>, Value<V>
Direct Known Subclasses:
OffsetValue.TemporalOffsetValue
Enclosing interface:
OffsetValue<V>

public static class OffsetValue.DefaultOffsetValue<O,V> extends Value.AbstractValue<V> implements OffsetValue<V>
  • Method Details

    • getBasis

      public V getBasis()
      Description copied from interface: OffsetValue
      Returns the basis from which the associated offset will be applied.
      Specified by:
      getBasis in interface OffsetValue<O>
      Returns:
      the basis from which the associated offset will be applied.
    • set

      public void set(V value)
      Description copied from interface: Value
      Updates the referenced value.
      Specified by:
      set in interface Value<O>
      Parameters:
      value - the new value.
    • setOffset

      public void setOffset(Offset<V> offset)
      Description copied from interface: OffsetValue
      Sets the current offset.
      Specified by:
      setOffset in interface OffsetValue<O>
      Parameters:
      offset - an offset
    • getOffset

      public Offset<V> getOffset()
      Description copied from interface: OffsetValue
      The current offset.
      Specified by:
      getOffset in interface OffsetValue<O>
      Returns:
      an offset
    • rebase

      public OffsetValue<V> rebase()
      Description copied from interface: OffsetValue
      Returns a new offset value based on the current value.
      Specified by:
      rebase in interface OffsetValue<O>
      Returns:
      a new offset value