public interface PollableSource extends Source
Source that requires an external driver to poll to determine
whether there are events that are available to ingest
from the source.EventDrivenSourceRunner| Modifier and Type | Interface and Description |
|---|---|
static class |
PollableSource.Status |
| Modifier and Type | Method and Description |
|---|---|
long |
getBackOffSleepIncrement() |
long |
getMaxBackOffSleepInterval() |
PollableSource.Status |
process()
Attempt to pull an item from the source, sending it to the channel.
|
getChannelProcessor, setChannelProcessorgetLifecycleState, start, stopgetName, setNamePollableSource.Status process() throws EventDeliveryException
Attempt to pull an item from the source, sending it to the channel.
When driven by an EventDrivenSourceRunner process is guaranteed
to be called only by a single thread at a time, with no concurrency.
Any other mechanism driving a pollable source must follow the same
semantics.
READY if one or more events were created from the source.
BACKOFF if no events could be created from the source.EventDeliveryException - If there was a failure in delivering to
the attached channel, or if a failure occurred in acquiring data from
the source.long getBackOffSleepIncrement()
long getMaxBackOffSleepInterval()
Copyright © 2009-2022 Apache Software Foundation. All Rights Reserved.