Package com.adaptris.core
Interface Poller
-
- All Superinterfaces:
ComponentLifecycle
- All Known Implementing Classes:
FixedIntervalPoller
,FsImmediateEventPoller
,GaussianIntervalPoller
,PollerImp
,QuartzCronPoller
,RandomIntervalPoller
,ScheduledTaskPoller
public interface Poller extends ComponentLifecycle
Schedules polling for
AdaptrisPollingConsumer
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
registerConsumer(AdaptrisPollingConsumer consumer)
Register theAdaptrisPollingConsumer
to use.AdaptrisPollingConsumer
retrieveConsumer()
Retrieve theAdaptrisPollingConsumer
to use.<T> T
retrieveConsumer(java.lang.Class<T> type)
Return the register consumer with casting.-
Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stop
-
-
-
-
Method Detail
-
registerConsumer
void registerConsumer(AdaptrisPollingConsumer consumer)
Register the
AdaptrisPollingConsumer
to use.- Parameters:
consumer
- theAdaptrisPollingConsumer
to use
-
retrieveConsumer
AdaptrisPollingConsumer retrieveConsumer()
Retrieve the
AdaptrisPollingConsumer
to use.- Returns:
- the
AdaptrisPollingConsumer
to use
-
retrieveConsumer
<T> T retrieveConsumer(java.lang.Class<T> type)
Return the register consumer with casting.
-
-