com.atomikos.icatch
Interface SubTxCode
public interface SubTxCode
An interface for transactional threads. Implementing this interface allows
you to start multithreaded subtransactions that run as subtransactions of
the calling thread's transaction. Implementations do NOT need to create,
start or commit/rollback these subtransactions: all management is done by the
system.
NOTE: in case of a top-level transaction in preferred serial mode, the
subtransactional threads will be serialized with respect to each other.
Method Summary |
void |
exec()
The method that contains the subtransactional logic. |
exec
void exec()
throws Exception
- The method that contains the subtransactional logic. Before this method
is called, the system will have started a subtransaction, and associated
it with the thread that will execute exec(). If this method exits without
an exception, then the subtransaction will be committed.
- Throws:
Exception
- On failure. In that case, the corresponding subtransaction
will be rolled back by the system.
Copyright © 2011. All Rights Reserved.