public class BroadcastDistributionStrategy extends DistributionStrategy
| Constructor and Description |
|---|
BroadcastDistributionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
getDestinationsToPublish(Object payload,
DynamicOptions transportOptions)
This method tells the ID(s) of the destination(s) to which a given messages should be sent.
|
void |
init(org.wso2.siddhi.query.api.definition.StreamDefinition streamDefinition,
OptionHolder transportOptionHolder,
OptionHolder distributionOptionHolder,
List<OptionHolder> destinationOptionHolders,
ConfigReader configReader)
Initialize the Distribution strategy with the information it will require to make decisions.
|
destinationAvailable, destinationFailed, getActiveDestinationCountpublic void init(org.wso2.siddhi.query.api.definition.StreamDefinition streamDefinition,
OptionHolder transportOptionHolder,
OptionHolder distributionOptionHolder,
List<OptionHolder> destinationOptionHolders,
ConfigReader configReader)
init in class DistributionStrategystreamDefinition - The stream attached to the sink this DistributionStrategy is used intransportOptionHolder - Sink options of the sink which uses this DistributionStrategydistributionOptionHolder - Option holder containing static and dynamic options related to the
distribution strategy.destinationOptionHolders - The list of options under @destination of the relevant sink.configReader - This hold the BroadcastDistributionStrategy extensions configuration reader.public List<Integer> getDestinationsToPublish(Object payload, DynamicOptions transportOptions)
getDestinationsToPublish in class DistributionStrategypayload - payload of the messagetransportOptions - Dynamic transport options of the sinkCopyright © 2019 WSO2. All rights reserved.