SMILA (incubation) API documentation

org.eclipse.smila.search.lucene.index.access
Class SynchronizedIndexReaderExecutor<ReturnedType>

java.lang.Object
  extended by org.eclipse.smila.search.lucene.index.access.SynchronizedAbstractExecutor<IndexReader,ReturnedType>
      extended by org.eclipse.smila.search.lucene.index.access.SynchronizedIndexReaderExecutor<ReturnedType>
Type Parameters:
ReturnedType - class of returned type.

public class SynchronizedIndexReaderExecutor<ReturnedType>
extends SynchronizedAbstractExecutor<IndexReader,ReturnedType>

The Class SynchronizedIndexReaderExecutor.


Constructor Summary
SynchronizedIndexReaderExecutor(java.lang.Object monitored, java.lang.String storage)
          Instantiates a new synchronized index reader executor.
 
Method Summary
protected  void close(IndexReader object)
          Close.
 ReturnedType execute(ISynchronizedOperation<IndexReader,ReturnedType> operation)
          Execute.
 
Methods inherited from class org.eclipse.smila.search.lucene.index.access.SynchronizedAbstractExecutor
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizedIndexReaderExecutor

public SynchronizedIndexReaderExecutor(java.lang.Object monitored,
                                       java.lang.String storage)
Instantiates a new synchronized index reader executor.

Parameters:
monitored - the monitored
storage - the storage
Method Detail

close

protected void close(IndexReader object)
              throws IndexException
Close.

Specified by:
close in class SynchronizedAbstractExecutor<IndexReader,ReturnedType>
Parameters:
object - the object
Throws:
IndexException - the index exception
See Also:
SynchronizedAbstractExecutor.close(java.lang.Object)

execute

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

Specified by:
execute in class SynchronizedAbstractExecutor<IndexReader,ReturnedType>
Parameters:
operation - the operation
Returns:
the returned type
Throws:
IndexException - the index exception
See Also:
#execute(org.eclipse.smila.search.lucene.index.access.ISynchronizedOperation)

SMILA (incubation) API documentation