Class DataReceiverImpl.MsgReceivingTask

java.lang.Object
org.hobbit.core.rabbit.DataReceiverImpl.MsgReceivingTask
All Implemented Interfaces:
Runnable, Terminatable, TerminatableRunnable
Enclosing class:
DataReceiverImpl

protected class DataReceiverImpl.MsgReceivingTask extends Object implements TerminatableRunnable
  • Field Details

    • consumer

      private QueueingConsumer consumer
    • runFlag

      private boolean runFlag
    • terminatedFlag

      private boolean terminatedFlag
  • Constructor Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • terminate

      public void terminate()
      Description copied from interface: Terminatable
      Informs the object that it should terminate. Note that there is no guarantee that the termination will happen while this method is running, i.e., this method is not blocking and won't wait for the object to terminate.
      Specified by:
      terminate in interface Terminatable
    • isTerminated

      public boolean isTerminated()
      Description copied from interface: Terminatable
      Returns a flag whether the object has been asked to terminate. Note that if the method returns true, it does not have to be terminated.
      Specified by:
      isTerminated in interface Terminatable
      Returns:
      returns true if it received a request to terminate