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:
org.wildfly.clustering.server.dispatcher.Command<Void, org.wildfly.clustering.server.scheduler.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(org.wildfly.clustering.server.scheduler.Scheduler<K,V> scheduler)