Class ScheduleCommand<K,V>

java.lang.Object
org.wildfly.clustering.server.infinispan.scheduler.AbstractPrimaryOwnerCommand<K,V,Void>
org.wildfly.clustering.server.infinispan.scheduler.ScheduleCommand<K,V>
Type Parameters:
K - the scheduled entry key type
V - the scheduled entry value type
All Implemented Interfaces:
Command<Void, Scheduler<K,V>, RuntimeException>, PrimaryOwnerCommand<K,V,Void>
Direct Known Subclasses:
ScheduleExpirationCommand

public class ScheduleCommand<K,V> extends AbstractPrimaryOwnerCommand<K,V,Void>
Command that scheduled an entry.
Author:
Paul Ferraro
  • Constructor Details

    • ScheduleCommand

      public ScheduleCommand(Map.Entry<K,V> entry)
      Creates a schedule command for the specified entry.
      Parameters:
      entry - an entry to be scheduled
  • Method Details

    • getValue

      protected V getValue()
      Returns the value to be scheduled.
      Returns:
      the value to be scheduled.
    • execute

      public Void execute(Scheduler<K,V> scheduler)
      Description copied from interface: Command
      Execute this command with the specified context.
      Parameters:
      scheduler - the execution context
      Returns:
      the result of this command