Class WriteOnlyKeyValueCommand<K,V,T>

All Implemented Interfaces:
DataCommand, FlagAffectedCommand, FunctionalCommand<K,V>, CacheRpcCommand, ReplicableCommand, SegmentSpecificCommand, TopologyAffectedCommand, TracedCommand, VisitableCommand, DataWriteCommand, WriteCommand, VersionAware, RemoteLockCommand

@ProtoTypeId(1250) public final class WriteOnlyKeyValueCommand<K,V,T> extends AbstractWriteKeyCommand<K,V>
  • Constructor Details

  • Method Details

    • init

      public void init(ComponentRegistry componentRegistry)
      Specified by:
      init in interface VisitableCommand
      Overrides:
      init in class AbstractWriteKeyCommand<K,V>
    • isConditional

      public boolean isConditional()
      Description copied from interface: WriteCommand
      Certain commands only work based on a certain condition or state of the cache. For example, ConcurrentMap.putIfAbsent(Object, Object) only does anything if a condition is met, i.e., the entry in question is not already present. This method tests whether the command in question is conditional or not.
      Returns:
      true if the command is conditional, false otherwise
    • acceptVisitor

      public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
      Description copied from interface: VisitableCommand
      Accept a visitor, and return the result of accepting this visitor.
      Parameters:
      ctx - invocation context
      visitor - visitor to accept
      Returns:
      arbitrary return value
      Throws:
      Throwable - in the event of problems
    • loadType

      public VisitableCommand.LoadType loadType()
      Returns:
      Nodes on which the command needs to read the previous values of the keys it acts on.
    • isWriteOnly

      public boolean isWriteOnly()
      Description copied from interface: WriteCommand
      Indicates whether the command is write-only, meaning that it makes no attempt to read the previously associated value with key for which the command is directed.
      Returns:
      true is the command is write only, false otherwise.
    • toMutation

      public Mutation<K,V,?> toMutation(Object key)
    • getBiConsumer

      public BiConsumer<T, EntryView.WriteEntryView<K,V>> getBiConsumer()
    • getArgument

      public Object getArgument()
    • supportedSince

      public NodeVersion supportedSince()
      Description copied from interface: ReplicableCommand
      Returns a NodeVersion representing the Infinispan version in which this command was added. This value is used to ensure that when the cluster contains different Infinispan versions, only commands compatible with the oldest version are transmitted.

      Abstract classes should not implement this method as the version should be specific to an individual implementation. Similarly, implementations which extend another ReplicableCommand should always override this method.

      Returns:
      a NodeVersion corresponding to the Infinispan version this command was added.