com.ibm.mq.jms
Class MQConnectionState

java.lang.Object
  |
  +--com.ibm.mq.jms.MQConnectionState

public class MQConnectionState
extends java.lang.Object

MQConnectionState is intended to be used privately inside instances of MQConnection so that they can maintain their state accurately by using syncronization. 10/05/07 AAE Created for APAR IY95370 to implement better state based locking within the MQConnection


Constructor Summary
MQConnectionState()
          MQConnectionState Contructor.
 
Method Summary
 int getState()
          Synchronized method used to obtain the state of the connection
 void setState(int newState)
          Synchronized method used to alter the state of the connection
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MQConnectionState

public MQConnectionState()
MQConnectionState Contructor. Initially assumes the connection state to be STATE_STOPPED

Method Detail

setState

public void setState(int newState)
Synchronized method used to alter the state of the connection

Parameters:
newState - - the new state for the connection

getState

public int getState()
Synchronized method used to obtain the state of the connection

Returns:
the current state of the connection

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

(c) Copyright IBM Corp. 2005. All Rights Reserved.