public final class Configuration extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addResource(RecoverableResource resource)
Add a resource to the transaction manager domain.
|
protected static Assembler |
getAssembler() |
static CompositeTransactionManager |
getCompositeTransactionManager()
Get the composite transaction manager.
|
static ConfigProperties |
getConfigProperties() |
static RecoveryLog |
getRecoveryLog() |
static RecoveryService |
getRecoveryService() |
static RecoverableResource |
getResource(String name)
Get the resource with the given name.
|
static Collection<RecoverableResource> |
getResources()
Get all resources added so far, in the order that they were added.
|
static TransactionService |
getTransactionService()
Retrieves the transaction service being used.
|
static boolean |
init() |
static void |
installCompositeTransactionManager(CompositeTransactionManager compositeTransactionManager)
Installs a composite transaction manager as a Singleton.
|
static void |
registerTransactionServicePlugin(TransactionServicePlugin l)
Add a transaction service listener.
|
static RecoverableResource |
removeResource(String name)
Removes a resource from the config.
|
static void |
shutdown(boolean force) |
static void |
shutdown(long maxWaitTime) |
static void |
unregisterTransactionServicePlugin(TransactionServicePlugin l)
Remove a transaction service listener.
|
public static TransactionService getTransactionService()
public static void registerTransactionServicePlugin(TransactionServicePlugin l)
l - The listener.public static void unregisterTransactionServicePlugin(TransactionServicePlugin l)
l - The listener.public static void installCompositeTransactionManager(CompositeTransactionManager compositeTransactionManager)
compositeTransactionManager - The instance to install.public static CompositeTransactionManager getCompositeTransactionManager()
public static void addResource(RecoverableResource resource) throws IllegalStateException
resource - The resource to add.IllegalStateException - If the name of the resource is already in use.public static RecoverableResource removeResource(String name)
name - The resource's name.public static RecoverableResource getResource(String name)
name - The name to find.public static Collection<RecoverableResource> getResources()
protected static Assembler getAssembler()
public static ConfigProperties getConfigProperties()
public static void shutdown(boolean force)
public static void shutdown(long maxWaitTime)
public static boolean init()
public static RecoveryLog getRecoveryLog()
public static RecoveryService getRecoveryService()
Copyright © 2022. All rights reserved.