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:-
- NONE - messages are not subject to syncpointing.
- LOCAL - Roma controls the syncpointing.
- GLOBAL - an application outside of Roma controls
syncpointing.
- PROFILE - Roma uses the default setting specified in
the API profile.
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(int 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 |
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 :-
setType
public void setType(int type)
- Sets the type of syncpoint.
- Parameters:
type
- the new type of syncpointing to use.
setContext
public void setContext(int ctx)
- Sets the context if GLOBAL syncpointing is in effect. The
context is passed to the transport layer.
- Parameters:
ctx
- the new context value.