public abstract static class LocalDocumentStore.DocumentOperation extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Cache<String,SchematicEntry> |
cache |
Constructor and Description |
---|
DocumentOperation() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
execute(String key,
EditableDocument document)
Execute the operation upon the given
EditableDocument . |
void |
setEnvironment(Cache<String,SchematicEntry> cache)
Invoked by execution environment after the operation has been migrated for execution to a specific Infinispan node.
|
protected Cache<String,SchematicEntry> cache
public void setEnvironment(Cache<String,SchematicEntry> cache)
cache
- cache whose keys are used as input data for this DistributedCallable taskpublic abstract boolean execute(String key, EditableDocument document)
EditableDocument
.key
- the document's key; never nulldocument
- the editable document; never nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.