SMILA (incubation) API documentation

org.eclipse.smila.search.lucene.index.access
Class SynchronizedAbstractExecutor<InitObject,ReturnedType>

java.lang.Object
  extended by org.eclipse.smila.search.lucene.index.access.SynchronizedAbstractExecutor<InitObject,ReturnedType>
Type Parameters:
InitObject - class of initialized object.
ReturnedType - class of returned type.
Direct Known Subclasses:
SynchronizedIndexReaderExecutor, SynchronizedIndexSearcherExecutor, SynchronizedIndexWriterExecutor

public abstract class SynchronizedAbstractExecutor<InitObject,ReturnedType>
extends java.lang.Object

The Class SynchronizedExecutor.


Constructor Summary
SynchronizedAbstractExecutor(java.lang.Object monitored)
          Instantiates a new synchronized executor.
 
Method Summary
protected abstract  void close(InitObject object)
          Close.
 ReturnedType execute(ISynchronizedCondition<InitObject> condition, ISynchronizedOperation<InitObject,ReturnedType> operation)
          Execute.
abstract  ReturnedType execute(ISynchronizedOperation<InitObject,ReturnedType> operation)
          Execute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizedAbstractExecutor

public SynchronizedAbstractExecutor(java.lang.Object monitored)
Instantiates a new synchronized executor.

Parameters:
monitored - the monitored
Method Detail

execute

public ReturnedType execute(ISynchronizedCondition<InitObject> condition,
                            ISynchronizedOperation<InitObject,ReturnedType> operation)
                     throws IndexException
Execute.

Parameters:
condition - the condition
operation - the operation
Returns:
true, if successful
Throws:
IndexException - the index exception

close

protected abstract void close(InitObject object)
                       throws IndexException
Close.

Parameters:
object - the object
Throws:
IndexException - the index exception

execute

public abstract ReturnedType execute(ISynchronizedOperation<InitObject,ReturnedType> operation)
                              throws IndexException
Execute.

Parameters:
operation - the operation
Returns:
the returned type
Throws:
IndexException - the index exception

SMILA (incubation) API documentation