Bundles wishing to use this package must list the package in the Import-Package header of the bundle's manifest. This package has two types of users: the consumers that use the API in this package and the providers that implement the API in this package.
Example import for consumers using the API in this package:
Import-Package: org.osgi.service.transaction.control; version="[1.0,2.0)"
Example import for providers implementing the API in this package:
Import-Package: org.osgi.service.transaction.control; version="[1.0,1.1)"
| Modifier and Type | Interface and Description |
|---|---|
| public interface | LocalResource
Resources that can integrate with local transactions should do so using this interface |
| public interface | ResourceProvider<T>
A resource provider is used to provide a transactional resource to the application |
| public interface | TransactionContext
A transaction context defines the current transaction, and allows resources to register information and/or synchronizations |
| public interface | TransactionControl
The interface used by clients to control the active transaction context |
| public interface | TransactionStarter
Implementations of this interface are able to run a piece of work within a transaction |
| Modifier and Type | Class and Description |
|---|---|
| public class | ScopedWorkException
An Exception that is thrown when a piece of scoped work exits with an
|
| public abstract class | TransactionBuilder
A builder for a piece of transactional work |
| public class | TransactionException
An Exception indicating that there was a problem with starting, finishing, suspending or resuming a transaction |
| public class | TransactionRolledBackException
An Exception indicating that the active transaction was unexpectedly rolled back |
| Modifier and Type | Enum and Description |
|---|---|
| public enum | TransactionStatus
The status of the transaction A transaction may not enter all of the states in this enum, however it will always traverse the enum in ascending order. |