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>
public class RequestProducerComposite<T extends OutgoingMessage> extends RequestProducerBase<T>
Represents a composition of multipleRequestProducer
instances.
-
-
Constructor Summary
Constructors Constructor Description RequestProducerComposite(RequestProducer<T>... producers)
Initializes a new instance of theRequestProducerComposite
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onStarting()
Invoked by the currentRequestProducerBase
when it is starting.protected void
onStopping()
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 Detail
-
RequestProducerComposite
@SafeVarargs public RequestProducerComposite(RequestProducer<T>... producers)
Initializes a new instance of theRequestProducerComposite
class.- Parameters:
producers
- the list of theRequestProducer
instances to be wrapped in the composite.
-
-
Method Detail
-
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>
-
-