Package org.hobbit.core.rabbit
Class DataReceiverImpl.MsgReceivingTask
java.lang.Object
org.hobbit.core.rabbit.DataReceiverImpl.MsgReceivingTask
- All Implemented Interfaces:
Runnable,Terminatable,TerminatableRunnable
- Enclosing class:
- DataReceiverImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a flag whether the object has been asked to terminate.voidrun()voidInforms the object that it should terminate.
-
Field Details
-
consumer
-
runFlag
private boolean runFlag -
terminatedFlag
private boolean terminatedFlag
-
-
Constructor Details
-
MsgReceivingTask
-
-
Method Details
-
run
public void run() -
terminate
public void terminate()Description copied from interface:TerminatableInforms 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:
terminatein interfaceTerminatable
-
isTerminated
public boolean isTerminated()Description copied from interface:TerminatableReturns a flag whether the object has been asked to terminate. Note that if the method returnstrue, it does not have to be terminated.- Specified by:
isTerminatedin interfaceTerminatable- Returns:
- returns
trueif it received a request to terminate
-