com.candle.roma.kxc
Class RomaSyncpointDef

java.lang.Object
  |
  +--com.candle.roma.kxc.RomaSyncpointDef

public class RomaSyncpointDef
extends java.lang.Object

This class encapsulates a Roma syncpoint definition. Syncpointing is used to guarantee that either all or no messages in a transaction are processed.

Roma supports the following types of syncpointing:-

If the API profile does not contain a value for this field, Roma uses the default (NONE).


Constructor Summary
RomaSyncpointDef(int type)
          Constructs a new RomaSyncpointDef object of the supplied syncpoint type.
 
Method Summary
 void setContext(byte[] ctx)
          Sets the context if GLOBAL syncpointing is in effect.
 void setType(int type)
          Sets the type of syncpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RomaSyncpointDef

public RomaSyncpointDef(int type)
Constructs a new RomaSyncpointDef object of the supplied syncpoint type.
Parameters:
type - the type of syncpoint to use. This may be one of the following :-
  • NONE
  • LOCAL
  • PROFILE
Method Detail

setType

public void setType(int type)
Sets the type of syncpoint.
Parameters:
type - the new type of syncpointing to use.

setContext

public void setContext(byte[] ctx)
Sets the context if GLOBAL syncpointing is in effect. The context is passed to the transport layer.
Parameters:
ctx - the new context value.