Class RequestProducerComposite<T extends OutgoingMessage>
java.lang.Object
com.sportradar.livedata.sdk.proto.common.RequestProducerBase<T>
com.sportradar.livedata.sdk.proto.common.RequestProducerComposite<T>
- All Implemented Interfaces:
RequestProducer<T>
Represents a composition of multiple
RequestProducer instances.-
Constructor Summary
ConstructorsConstructorDescriptionRequestProducerComposite(RequestProducer<T>... producers) Initializes a new instance of theRequestProducerCompositeclass. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInvoked by the currentRequestProducerBasewhen it is starting.protected voidInvoked by the currentRequestProducerBasewhen it is stopping.Methods inherited from class com.sportradar.livedata.sdk.proto.common.RequestProducerBase
getIsStarted, notifyOnRequestReady, notifyOnRequestReady, setListener, start, stop
-
Constructor Details
-
RequestProducerComposite
Initializes a new instance of theRequestProducerCompositeclass.- Parameters:
producers- the list of theRequestProducerinstances to be wrapped in the composite.
-
-
Method Details
-
onStopping
protected void onStopping()Invoked by the currentRequestProducerBasewhen it is stopping. Note that the method is called withing critical region, so make sure the execution does not leave the derived class.- Overrides:
onStoppingin classRequestProducerBase<T extends OutgoingMessage>
-
onStarting
protected void onStarting()Invoked by the currentRequestProducerBasewhen it is starting. Note that the method is called within critical region, so make sure the execution does not leave the derived class.- Overrides:
onStartingin classRequestProducerBase<T extends OutgoingMessage>
-