KP - public interface ExecutionContext<KP> extends Context, ProgressMonitorFactory
| Modifier and Type | Method and Description |
|---|---|
void |
addUndo(Runnable undoCommand)
Adds a command to be executed on transaction rollback.
|
MutableContext |
createContext()
Creates a mutable context chained with this executor.
|
PropertySet<KP> |
createPropertySet(PropertySet<KP>... chain) |
<V> Future<V> |
execute(Command<KP,V> command,
Context context,
PropertySet<KP> properties,
Object... args)
Executes command either in the same thread on in a background thread but in the context of the same transaction.
|
Logger |
getLogger() |
Transaction |
getTransaction() |
void |
registerXAResource(XAResource xaResource)
Resources shall be registered before it can be used - Bitronix idiosyncrasy.
|
void |
yield()
By invoking this method command indicates that it cannot complete because of pending dependencies and shall be
executed later.
|
createProgressMonitorTransaction getTransaction()
void registerXAResource(XAResource xaResource)
xaResource - void addUndo(Runnable undoCommand)
undoCommand - <V> Future<V> execute(Command<KP,V> command, Context context, PropertySet<KP> properties, Object... args)
command - properties - args - PropertySet<KP> createPropertySet(PropertySet<KP>... chain)
MutableContext createContext()
void yield()