|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPhynixxManagedConnection<C extends IPhynixxConnection>
a managed connection is managed by the phynixx system. it takes care of integrating the connection into the phynixx XA Implementation and/or provides persistent logger to store transaction data.
It decorates the origin Connection with one or more aspects an. You can declare new decorators byPhynixxManagedConnectionFactory
this IF combines the role of a core connection and the role of a connection proxy.
Impl. of this IF represents the access to the core connections in this FW
h1. Thread Safeness
When this connection is used in a pool (PooledPhynixxManagedConnectionFactory
it is strongly recommend to synchronized
the connection setSynchronized(boolean)
.
When a connection is get from the pool or if it is released to it some functionality of the connection is used.
It is no obvious if the pools implementation of GenericObjectPool
is strictly thread safe.
Method Summary | |
---|---|
void |
addConnectionListener(IPhynixxManagedConnectionListener<C> listener)
|
void |
commit(boolean onePhaseCommit)
|
void |
free()
marks a connection a freed. |
C |
getCoreConnection()
|
long |
getManagedConnectionId()
|
boolean |
hasCoreConnection()
|
boolean |
hasTransactionalData()
|
boolean |
isSynchronized()
|
void |
recover()
|
void |
removeConnectionListener(IPhynixxManagedConnectionListener<C> listener)
|
void |
reopen()
opens a connection that may have been reset. |
void |
setSynchronized(boolean state)
set the thread safeness of the connection. |
C |
toConnection()
|
Methods inherited from interface org.csc.phynixx.connection.IPhynixxConnection |
---|
close, commit, prepare, reset, rollback |
Methods inherited from interface org.csc.phynixx.connection.ICloseable |
---|
close, isClosed |
Method Detail |
---|
void setSynchronized(boolean state)
state
- boolean isSynchronized()
long getManagedConnectionId()
C getCoreConnection()
boolean hasTransactionalData()
C toConnection()
void free()
boolean hasCoreConnection()
void recover()
void commit(boolean onePhaseCommit)
void reopen()
ICloseable.isClosed()
==false and IPhynixxConnection.reset()
is called on the physical connection.
IllegalStateException
- connection has transactional datavoid addConnectionListener(IPhynixxManagedConnectionListener<C> listener)
void removeConnectionListener(IPhynixxManagedConnectionListener<C> listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |