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 theRequestProducerComposite
class. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Invoked by the currentRequestProducerBase
when it is starting.protected void
Invoked by the currentRequestProducerBase
when 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 theRequestProducerComposite
class.- Parameters:
producers
- the list of theRequestProducer
instances to be wrapped in the composite.
-
-
Method Details
-
onStopping
protected void onStopping()Invoked by the currentRequestProducerBase
when it is stopping. Note that the method is called withing critical region, so make sure the execution does not leave the derived class.- Overrides:
onStopping
in classRequestProducerBase<T extends OutgoingMessage>
-
onStarting
protected void onStarting()Invoked by the currentRequestProducerBase
when it is starting. Note that the method is called within critical region, so make sure the execution does not leave the derived class.- Overrides:
onStarting
in classRequestProducerBase<T extends OutgoingMessage>
-