org.semanticweb.elk.util.concurrent.computation
Interface InputProcessorListenerNotifyFinishedJob<J>

Type Parameters:
J - the type of the jobs used in the job processor

public interface InputProcessorListenerNotifyFinishedJob<J>

A listener to be used with InputProcessor that can be used to perform actions when a job is processed.

Author:
"Yevgeny Kazakov"

Method Summary
 void notifyFinished(J job)
          This function is called after the input processor detects when the job is fully processed.
 

Method Detail

notifyFinished

void notifyFinished(J job)
                    throws InterruptedException
This function is called after the input processor detects when the job is fully processed. When the submitted job is processed, this method will be guaranteed to be called with this job as an argument. If InputProcessor.submit(Object) is called followed with InputProcessor.process(), it is guaranteed that notifyFinished(Object) will be called (perhaps from some other thread) before no instance of InputProcessor.process() is running.

Parameters:
job - the job that has been processed
Throws:
InterruptedException - if interrupted during the notification


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.