Class PrimaryOwnerScheduler<I,M>

java.lang.Object
org.wildfly.clustering.server.infinispan.scheduler.PrimaryOwnerScheduler<I,M>
Type Parameters:
I - the scheduled entry identifier type
M - the scheduled entry metadata type
All Implemented Interfaces:
AutoCloseable, Scheduler<I,M>, org.wildfly.clustering.server.scheduler.Scheduler<I,M>

public class PrimaryOwnerScheduler<I,M> extends Object implements Scheduler<I,M>
Scheduler decorator that schedules/cancels a given object on the primary owner.
Author:
Paul Ferraro
  • Constructor Details

  • Method Details

    • schedule

      public void schedule(I id)
      Description copied from interface: Scheduler
      Schedules an entry for the specified identifier.
      Specified by:
      schedule in interface Scheduler<I,M>
      Parameters:
      id - a scheduled entry identifier
    • schedule

      public void schedule(I id, M metaData)
      Specified by:
      schedule in interface org.wildfly.clustering.server.scheduler.Scheduler<I,M>
    • cancel

      public void cancel(I id)
      Specified by:
      cancel in interface org.wildfly.clustering.server.scheduler.Scheduler<I,M>
    • contains

      public boolean contains(I id)
      Specified by:
      contains in interface org.wildfly.clustering.server.scheduler.Scheduler<I,M>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.wildfly.clustering.server.scheduler.Scheduler<I,M>