Class TrackingMap.Operation<K>

java.lang.Object
com.helixframework.collections.TrackingMap.Operation<K>
Type Parameters:
K - key type
Enclosing class:
TrackingMap<K,V>

public static class TrackingMap.Operation<K> extends Object
Tracked operation.
  • Method Details

    • read

      public static <K> TrackingMap.Operation<K> read(K key)
      Creates a read operation.
      Type Parameters:
      K - key type
      Parameters:
      key - key
      Returns:
      a read operation
    • write

      public static <K> TrackingMap.Operation<K> write(K key)
      Creates a write operation.
      Type Parameters:
      K - key type
      Parameters:
      key - key
      Returns:
      a write operation
    • delete

      public static <K> TrackingMap.Operation<K> delete(K key)
      Creates a delete operation.
      Type Parameters:
      K - key type
      Parameters:
      key - key
      Returns:
      a delete operation
    • getKey

      public K getKey()
      Gets the key for the operation.
      Returns:
      key
    • getType

      public TrackingMap.OperationType getType()
      Gets the type of the operation.
      Returns:
      operation type