public void setState(int state) { int oldState = this.state; fireStateChanging(oldState, state); if (oldState == state) throw new IllegalArgumentException("cannot switch state from " + Decoder.decodeXAStatefulHolderState(oldState) + " to " + Decoder.decodeXAStatefulHolderState(state)); if (log.isDebugEnabled()) log.debug("state changing from " + Decoder.decodeXAStatefulHolderState(oldState) + " to " + Decoder.decodeXAStatefulHolderState(state) + " in " + this); this.state = state; fireStateChanged(oldState, state); }
private void fireStateChanging(int currentState, int futureState) { if (log.isDebugEnabled()) log.debug("notifying " + stateChangeEventListeners.size() + " stateChangeEventListener(s) about state changing from " + Decoder.decodeXAStatefulHolderState(currentState) + " to " + Decoder.decodeXAStatefulHolderState(futureState) + " in " + this); for (StateChangeListener stateChangeListener : stateChangeEventListeners) { stateChangeListener.stateChanging(this, currentState, futureState); } }
public void setState(int state) { int oldState = this.state; fireStateChanging(oldState, state); if (oldState == state) throw new IllegalArgumentException("cannot switch state from " + Decoder.decodeXAStatefulHolderState(oldState) + " to " + Decoder.decodeXAStatefulHolderState(state)); if (log.isDebugEnabled()) log.debug("state changing from " + Decoder.decodeXAStatefulHolderState(oldState) + " to " + Decoder.decodeXAStatefulHolderState(state) + " in " + this); this.state = state; fireStateChanged(oldState, state); }
private void fireStateChanged(int oldState, int newState) { if (log.isDebugEnabled()) log.debug("notifying " + stateChangeEventListeners.size() + " stateChangeEventListener(s) about state changed from " + Decoder.decodeXAStatefulHolderState(oldState) + " to " + Decoder.decodeXAStatefulHolderState(newState) + " in " + this); for (StateChangeListener stateChangeListener : stateChangeEventListeners) { stateChangeListener.stateChanged(this, oldState, newState); } } }
private void fireStateChanging(int currentState, int futureState) { if (log.isDebugEnabled()) log.debug("notifying " + stateChangeEventListeners.size() + " stateChangeEventListener(s) about state changing from " + Decoder.decodeXAStatefulHolderState(currentState) + " to " + Decoder.decodeXAStatefulHolderState(futureState) + " in " + this); for (StateChangeListener stateChangeListener : stateChangeEventListeners) { stateChangeListener.stateChanging(this, currentState, futureState); } }
private void fireStateChanged(int oldState, int newState) { if (log.isDebugEnabled()) log.debug("notifying " + stateChangeEventListeners.size() + " stateChangeEventListener(s) about state changed from " + Decoder.decodeXAStatefulHolderState(oldState) + " to " + Decoder.decodeXAStatefulHolderState(newState) + " in " + this); for (StateChangeListener stateChangeListener : stateChangeEventListeners) { stateChangeListener.stateChanged(this, oldState, newState); } } }
public String getStateDescription() { return Decoder.decodeXAStatefulHolderState(getState()); }
public String getStateDescription() { return Decoder.decodeXAStatefulHolderState(getState()); }
public String toString() { return "a DualSessionWrapper in state " + Decoder.decodeXAStatefulHolderState(getState()) + " of " + pooledConnection; }
public String getStateDescription() { return Decoder.decodeXAStatefulHolderState(getState()); }
public String toString() { return "a DualSessionWrapper in state " + Decoder.decodeXAStatefulHolderState(getState()) + " of " + pooledConnection; }
public String getStateDescription() { return Decoder.decodeXAStatefulHolderState(getState()); }
public Object getConnectionHandle() throws Exception { if (log.isDebugEnabled()) log.debug("getting connection handle from " + this); int oldState = getState(); setState(STATE_ACCESSIBLE); if (oldState == STATE_IN_POOL) { if (log.isDebugEnabled()) log.debug("connection " + xaConnection + " was in state IN_POOL, testing it"); testXAConnection(); } else { if (log.isDebugEnabled()) log.debug("connection " + xaConnection + " was in state " + Decoder.decodeXAStatefulHolderState(oldState) + ", no need to test it"); } if (log.isDebugEnabled()) log.debug("got connection handle from " + this); return new JmsConnectionHandle(this, xaConnection); }
public Object getConnectionHandle() throws Exception { if (log.isDebugEnabled()) log.debug("getting connection handle from " + this); int oldState = getState(); setState(STATE_ACCESSIBLE); if (oldState == STATE_IN_POOL) { if (log.isDebugEnabled()) log.debug("connection " + xaConnection + " was in state IN_POOL, testing it"); testXAConnection(); } else { if (log.isDebugEnabled()) log.debug("connection " + xaConnection + " was in state " + Decoder.decodeXAStatefulHolderState(oldState) + ", no need to test it"); } if (log.isDebugEnabled()) log.debug("got connection handle from " + this); return new JmsConnectionHandle(this, xaConnection); }
public String toString() { synchronized (sessions) { return "a JmsPooledConnection of pool " + poolingConnectionFactory.getUniqueName() + " in state " + Decoder.decodeXAStatefulHolderState(getState()) + " with underlying connection " + xaConnection; } }
public String toString() { synchronized (sessions) { return "a JmsPooledConnection of pool " + poolingConnectionFactory.getUniqueName() + " in state " + Decoder.decodeXAStatefulHolderState(getState()) + " with underlying connection " + xaConnection; } }
public String toString() { return "a JdbcPooledConnection from datasource " + poolingDataSource.getUniqueName() + " in state " + Decoder.decodeXAStatefulHolderState(getState()) + " with usage count " + usageCount + " wrapping " + xaConnection; }
public String toString() { return "a JdbcPooledConnection from datasource " + poolingDataSource.getUniqueName() + " in state " + Decoder.decodeXAStatefulHolderState(getState()) + " with usage count " + usageCount + " wrapping " + xaConnection; }
if (log.isDebugEnabled()) log.debug("connection " + xaConnection + " was in state " + Decoder.decodeXAStatefulHolderState(oldState) + ", no need to test it");
if (log.isDebugEnabled()) log.debug("connection " + xaConnection + " was in state " + Decoder.decodeXAStatefulHolderState(oldState) + ", no need to test it");