Content - the type of content to indexResult - the type of response to expect from an operationpublic abstract class AsynchIndexer<Content,Result> extends Object implements Indexer<Content>
Indexer that executes its operation asynchronously.Indexer.IndexerType, Indexer.NoContent| Constructor and Description |
|---|
AsynchIndexer() |
| Modifier and Type | Method and Description |
|---|---|
abstract com.google.common.util.concurrent.ListeningExecutorService |
executorService() |
com.google.common.util.concurrent.ListenableFuture<Result> |
remove(String identifier)
Remove the object from the index.
|
abstract Callable<Result> |
removeSynch(String identifier) |
com.google.common.util.concurrent.ListenableFuture<Result> |
update(String identifier,
Content content)
Create or update an index entry for the object.
|
abstract Callable<Result> |
updateSynch(String identifier,
Content content) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIndexerTypepublic abstract com.google.common.util.concurrent.ListeningExecutorService executorService()
ListeningExecutorService to use for operation.public com.google.common.util.concurrent.ListenableFuture<Result> update(String identifier, Content content) throws IOException
Indexerupdate in interface Indexer<Content>IOExceptionpublic com.google.common.util.concurrent.ListenableFuture<Result> remove(String identifier) throws IOException
Indexerremove in interface Indexer<Content>IOExceptionpublic abstract Callable<Result> removeSynch(String identifier)
identifier - Copyright © 2013–2014 DuraSpace, Inc.. All rights reserved.