Class RequestProducerBase<T extends OutgoingMessage>

    • Constructor Detail

      • RequestProducerBase

        public RequestProducerBase()
    • Method Detail

      • onStarting

        protected void onStarting()
        Invoked by the current RequestProducerBase when it is starting. Note that the method is called within critical region, so make sure the execution does not leave the derived class.
      • onStopping

        protected void onStopping()
        Invoked by the current RequestProducerBase when it is stopping. Note that the method is called withing critical region, so make sure the execution does not leave the derived class.
      • getIsStarted

        protected boolean getIsStarted()
        Gets the value specifying whether the current RequestProducerBase is started.
        Returns:
        the value specifying whether the current RequestProducerBase is started.
      • notifyOnRequestReady

        protected boolean notifyOnRequestReady​(T message)
      • notifyOnRequestReady

        protected boolean notifyOnRequestReady​(T message,
                                               boolean blocking)
        Notifies the observer that new request is ready to be send to the server.
        Parameters:
        message - the T representing the request to be send to the betradar server.
        blocking - determine if request must be blocking.
        Returns:
        true is success.