Interface ScheduleCommand<I,M>

All Superinterfaces:
Command<Void,CacheEntryScheduler<I,M>>, Serializable
All Known Implementing Classes:
ScheduleWithMetaDataCommand, ScheduleWithTransientMetaDataCommand

public interface ScheduleCommand<I,M> extends Command<Void,CacheEntryScheduler<I,M>>
Command that scheduled an element.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    default Void
     
    Returns the identifier of the element to be scheduled.
    Returns the meta data of the element to be scheduled.
  • Method Details

    • getId

      I getId()
      Returns the identifier of the element to be scheduled.
      Returns:
      the identifier of the element to be scheduled.
    • getMetaData

      M getMetaData()
      Returns the meta data of the element to be scheduled.
      Returns:
      the meta data of the element to be scheduled.
    • execute

      default Void execute(CacheEntryScheduler<I,M> scheduler) throws Exception
      Specified by:
      execute in interface Command<I,M>
      Throws:
      Exception