T
- the item to be scheduled.public interface Scheduler<T> extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
cancel(T item)
Cancels the scheduled task for the specified value.
|
void |
close()
Closes any resources used by this scheduler.
|
void |
schedule(T item)
Schedules some task for the specified value.
|
void schedule(T item)
item
- the item to schedule.void cancel(T item)
item
- the item to cancel.void close()
close
in interface AutoCloseable
Copyright © 2014 JBoss by Red Hat. All rights reserved.