bitronix.tm.resource.common
Interface StateChangeListener

All Known Implementing Classes:
DualSessionWrapper, JdbcPooledConnection, XAPool

public interface StateChangeListener

XAStatefulHolder state change listener interface.

© Bitronix Software

Author:
lorban

Method Summary
 void stateChanged(XAStatefulHolder source, int oldState, int newState)
          Fired when the internal state of a XAStatefulHolder has changed.
 void stateChanging(XAStatefulHolder source, int currentState, int futureState)
          Fired before the internal state of a XAStatefulHolder has changed.
 

Method Detail

stateChanged

void stateChanged(XAStatefulHolder source,
                  int oldState,
                  int newState)
Fired when the internal state of a XAStatefulHolder has changed.

Parameters:
source - the XAStatefulHolder changing state.
oldState - the old state of the XAStatefulHolder.
newState - the new state of the XAStatefulHolder.

stateChanging

void stateChanging(XAStatefulHolder source,
                   int currentState,
                   int futureState)
Fired before the internal state of a XAStatefulHolder has changed.

Parameters:
source - the XAStatefulHolder changing state.
currentState - the current state of the XAStatefulHolder.
futureState - the future state of the XAStatefulHolder.