public interface ChannelSelector extends NamedComponent, Configurable
Allows the selection of a subset of channels from the given set based on its implementation policy. Different implementations of this interface embody different policies that affect the choice of channels that a source will push the incoming events to.
Modifier and Type | Method and Description |
---|---|
List<Channel> |
getAllChannels() |
List<Channel> |
getOptionalChannels(Event event)
Returns a list of optional channels.
|
List<Channel> |
getRequiredChannels(Event event)
Returns a list of required channels.
|
void |
setChannels(List<Channel> channels) |
getName, setName
configure
void setChannels(List<Channel> channels)
channels
- all channels the selector could select from.List<Channel> getRequiredChannels(Event event)
event
- List<Channel> getOptionalChannels(Event event)
event
- Copyright © 2009–2019 Apache Software Foundation. All rights reserved.