public abstract class Selector extends Object
Modifier | Constructor and Description |
---|---|
protected |
Selector(String vendor)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract TransactionManager |
doLookup()
Lookup the transaction manager.
|
TransactionManager |
getTransactionManager()
Get the transaction manager, looking it up if necessary.
|
String |
getVendor()
Get the vendor name
|
void |
registerResource(EhcacheXAResource ehcacheXAResource,
boolean forRecovery)
Register an XAResource with the transaction manager.
|
void |
unregisterResource(EhcacheXAResource ehcacheXAResource,
boolean forRecovery)
Unregister an XAResource from the transaction manager.
|
protected Selector(String vendor)
vendor
- an indicative transaction manager vendor name
this selector is working with.public String getVendor()
public TransactionManager getTransactionManager()
public void registerResource(EhcacheXAResource ehcacheXAResource, boolean forRecovery)
ehcacheXAResource
- the XAResourceforRecovery
- true if this XAResource is being registered purely for recovery purposepublic void unregisterResource(EhcacheXAResource ehcacheXAResource, boolean forRecovery)
ehcacheXAResource
- the XAResourceforRecovery
- true if this XAResource was registered purely for recovery purposeprotected abstract TransactionManager doLookup()
Copyright 2001-2021, Terracotta, Inc.