Interface RequestProducer<T extends OutgoingMessage>
-
- Type Parameters:
T
- The type of the requests produced by the currentRequestProducer
- All Known Implementing Classes:
LiveScoutClientAliveProducer
,LiveScoutUserRequestManagerImpl
,RequestProducerBase
,RequestProducerComposite
public interface RequestProducer<T extends OutgoingMessage>
Represents a class which is capable of producing messages for the betradar server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setListener(RequestProducerListener<T> listener)
Sets theRequestProducerListener
used to observe the currentRequestProducer
void
start()
Instructs theRequestProducer
to start generating requests.void
stop()
Instructs theRequestProducer
to stop generating requests;
-
-
-
Method Detail
-
setListener
void setListener(RequestProducerListener<T> listener)
Sets theRequestProducerListener
used to observe the currentRequestProducer
- Parameters:
listener
- The listener used to observer the currentRequestProducer
-
start
void start()
Instructs theRequestProducer
to start generating requests.
-
stop
void stop()
Instructs theRequestProducer
to stop generating requests;
-
-