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
Modifier and TypeMethodDescriptionvoidsetListener(RequestProducerListener<T> listener) Sets theRequestProducerListenerused to observe the currentRequestProducervoidstart()Instructs theRequestProducerto start generating requests.voidstop()Instructs theRequestProducerto stop generating requests;
-
Method Details
-
setListener
Sets theRequestProducerListenerused to observe the currentRequestProducer- Parameters:
listener- The listener used to observer the currentRequestProducer
-
start
void start()Instructs theRequestProducerto start generating requests. -
stop
void stop()Instructs theRequestProducerto stop generating requests;
-