StateChangeListener (Bitronix Transaction Manager :: Core 2.1.4 API)
Date: 2013-09-15

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## bitronix.tm.resource.common
Interface StateChangeListener

All Known Implementing Classes:
  DualSessionWrapper, JdbcPooledConnection, XAPool

    public interface StateChangeListener

`XAStatefulHolder` state change listener interface.

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`.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013 Bitronix Software. All Rights Reserved.