@InterfaceAudience.Public @InterfaceStability.Stable public interface Source extends LifecycleAware, NamedComponent
A source generates and calls methods on the
configured ChannelProcessor
to persist those events into the
configured channels.
Sources are associated with unique names that can be used for separating configuration and working namespaces.
No guarantees are given regarding thread safe access.
Modifier and Type | Method and Description |
---|---|
ChannelProcessor |
getChannelProcessor()
Returns the channel processor that will handle this source's events.
|
void |
setChannelProcessor(ChannelProcessor channelProcessor)
Specifies which channel processor will handle this source's events.
|
getLifecycleState, start, stop
getName, setName
void setChannelProcessor(ChannelProcessor channelProcessor)
channelProcessor
- ChannelProcessor getChannelProcessor()
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.