Class ChangeModifiers

All Implemented Interfaces:
SmartExternalizable, Externalizable, Serializable

public class ChangeModifiers extends SpaceProxyOperationModifiers
Provides modifiers to customize the behavior of change operations.
Since:
9.1
Author:
Niv Ingberg
See Also:
  • Field Details

    • NONE

      public static final ChangeModifiers NONE
      Empty - use operation default behavior.
    • ONE_WAY

      public static final ChangeModifiers ONE_WAY
      Operation is executed in one way mode, meaning no return value will be provided. Using this mode provides no guarantee whether the operation succeeded or not, the only guarantee is that the operation was successfully written to the local network buffer. As a result, using this modifier will cause the operation not to guarantee automatic fail-over if the primary space instance failed, and it cannot be done under a transaction.
    • RETURN_DETAILED_RESULTS

      public static final ChangeModifiers RETURN_DETAILED_RESULTS
      Return details results meaning the ChangeResult.getResults() should contain data, otherwise only the number of changed entries will be returned as a result which can be accessed via the ChangeResult.getNumberOfChangedEntries().
  • Constructor Details

    • ChangeModifiers

      public ChangeModifiers()
    • ChangeModifiers

      public ChangeModifiers(ChangeModifiers modifiers1, ChangeModifiers modifiers2)
      Creates a new modifiers from the specified modifiers.
    • ChangeModifiers

      public ChangeModifiers(ChangeModifiers modifiers1, ChangeModifiers modifiers2, ChangeModifiers modifiers3)
      Creates a new modifiers from the specified modifiers.
    • ChangeModifiers

      public ChangeModifiers(ChangeModifiers... modifiers)
      Creates a new modifiers from the specified modifiers.
  • Method Details

    • contains

      public boolean contains(ChangeModifiers modifiers)
      Checks if the specified modifier is set.
      Returns:
      true if the specified modifier is set, false otherwise.
    • add

      public ChangeModifiers add(ChangeModifiers modifiers)
      Creates a new modifiers instance which is a union of the specified modifiers and this instance.
      Parameters:
      modifiers - Modifiers to add.
      Returns:
      A union of the current modifiers and the specified modifiers.
    • remove

      public ChangeModifiers remove(ChangeModifiers modifiers)
      Creates a new modifiers instance which excludes the specified modifiers from this instance.
      Parameters:
      modifiers - Modifiers to remove.
      Returns:
      The modifiers from this instance without the modifiers from the specified instance.
    • create

      protected ChangeModifiers create(int modifiers)
      Specified by:
      create in class SpaceProxyOperationModifiers
    • getCache

      protected Map<Integer,SpaceProxyOperationModifiers> getCache()
      Specified by:
      getCache in class SpaceProxyOperationModifiers