com.neeve.link
Interface ILnkContainerRunCompletionChecker

All Superinterfaces:
IEmxDispatcherRunCompletionChecker

public interface ILnkContainerRunCompletionChecker
extends IEmxDispatcherRunCompletionChecker

Interface through which a runnable container checks for completion.

This interface is used by runnable containers ILnkRunnableContainer to check for completion of run requests.

Threading:
The completion checker is always invoked by one of the runnable container threads.

Method Summary
 Object getCompletion()
          Method queried for run completion data.
 boolean isDone()
          Method queried for completion of the run.
 

Method Detail

isDone

boolean isDone()
Method queried for completion of the run.

This method is invoked to query the completion of the container's run invocation. The implementation should return true in case the run loop should return. Upon returning true, the run method will query for the completion object via getCompletion() and return the completion object from the run method.

Specified by:
isDone in interface IEmxDispatcherRunCompletionChecker
Threading:
This method can be invoked by any of the containers threads.

getCompletion

Object getCompletion()
                     throws Exception
Method queried for run completion data.

Specified by:
getCompletion in interface IEmxDispatcherRunCompletionChecker
Throws:
Exception - Any exception thrown is rethrown by the run method.

This method is queried for completion data after isDone() returns true. The object returned or the exception thrown by this method are returned/thrown by the run method.

Threading:
This method can be invoked by any of the containers threads.


Copyright © 2015 Neeve Research, LLC. All Rights Reserved.