org.exolab.jmscts.core
Class AckTypes

java.lang.Object
  |
  +--org.exolab.jmscts.core.AckTypes

public class AckTypes
extends java.lang.Object

Helper class used to indicate what message acknowledgement types to run a particular test case against

Version:
$Revision: 1.4 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson
See Also:
AckType, SessionTestCase, SessionTestRunner

Field Summary
static AckTypes ALL
          All session message acknowledgement types
static AckType AUTO_ACKNOWLEDGE
          Non-transacted session, session automatically acknowledges messages
static AckType CLIENT_ACKNOWLEDGE
          Non-transacted session, client ackwnowledges messages
static AckType DUPS_OK_ACKNOWLEDGE
          Non-transacted session, messages are lazily acknowledged
static AckTypes NON_TRANSACTIONAL
          Non transacted sessions
static AckType TRANSACTED
          Transacted session
static AckTypes TRANSACTIONAL
          Transacted sessions
 
Constructor Summary
AckTypes(AckType type)
          Construct a new instance to test against a single acknowledgement type
AckTypes(AckType[] types)
          Construct a new instance to test against a set of message acknowledgement types
 
Method Summary
static AckTypes fromString(java.lang.String[] types)
          Helper to convert a set of stringified acknowledgement types to a AckTypes instance
 AckType[] getTypes()
          Returns the list of message acknowledgement types to test against
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSACTED

public static final AckType TRANSACTED
Transacted session

AUTO_ACKNOWLEDGE

public static final AckType AUTO_ACKNOWLEDGE
Non-transacted session, session automatically acknowledges messages

CLIENT_ACKNOWLEDGE

public static final AckType CLIENT_ACKNOWLEDGE
Non-transacted session, client ackwnowledges messages

DUPS_OK_ACKNOWLEDGE

public static final AckType DUPS_OK_ACKNOWLEDGE
Non-transacted session, messages are lazily acknowledged

ALL

public static final AckTypes ALL
All session message acknowledgement types

NON_TRANSACTIONAL

public static final AckTypes NON_TRANSACTIONAL
Non transacted sessions

TRANSACTIONAL

public static final AckTypes TRANSACTIONAL
Transacted sessions
Constructor Detail

AckTypes

public AckTypes(AckType[] types)
Construct a new instance to test against a set of message acknowledgement types
Parameters:
types - a list of message acknowledgement types

AckTypes

public AckTypes(AckType type)
Construct a new instance to test against a single acknowledgement type
Parameters:
type - the message acknowledgement type
Method Detail

getTypes

public AckType[] getTypes()
Returns the list of message acknowledgement types to test against
Returns:
the list of message acknowledgement types to test against

fromString

public static AckTypes fromString(java.lang.String[] types)
Helper to convert a set of stringified acknowledgement types to a AckTypes instance
Parameters:
types - the acknowledgement types
Returns:
an instance corresponding to types, or null if types is invalid


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.