T
- return type of executed operation.public abstract class ExecutingStoreOperation<T> extends AbstractStoreOperation
AbstractStoreOperation
which
provides a method execute()
that may be invoked
exactly once.Modifier | Constructor and Description |
---|---|
protected |
ExecutingStoreOperation(StoreContext storeContext)
constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract T |
execute()
Execute the operation.
|
protected void |
executeOnlyOnce()
Check that the operation has not been invoked twice.
|
getStoreContext
protected ExecutingStoreOperation(StoreContext storeContext)
storeContext
- store context.public abstract T execute() throws IOException
executeOnlyOnce()
so as to force
the (atomic) re-entrancy check.IOException
- IO problemprotected void executeOnlyOnce()
IllegalStateException
- on a second invocation.Copyright © 2008–2020 Apache Software Foundation. All rights reserved.