org.objectweb.transaction.lib.transaction
Class DependencyTypeCausal
java.lang.Object
|
+--org.objectweb.transaction.lib.transaction.DependencyTypeCausal
- All Implemented Interfaces:
- DependencyType
- public class DependencyTypeCausal
- extends java.lang.Object
- implements DependencyType
DependencyType for a causal inter-transactions dependency.
Causal Dependency: This type of dependency should cause a
significant event in case of occurence of another significant event.
The ability to ensure a causal dependency depends on the forcability
of the significant event that should be caused.
- Version:
- 0.1
- Author:
- Romain Rouvoy
Field Summary |
static DependencyType |
type
Object value for the dependency type Causal. |
static int |
value
Int value for dependency type Causal. |
Method Summary |
int |
getValue()
Retrieves the int value for this type of dependency. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
value
public static final int value
- Int value for dependency type Causal.
type
public static final DependencyType type
- Object value for the dependency type Causal.
DependencyTypeCausal
public DependencyTypeCausal()
getValue
public int getValue()
- Description copied from interface:
DependencyType
- Retrieves the int value for this type of dependency.
- Specified by:
getValue
in interface DependencyType
- Returns:
- the encoded value for the requested DependencyType
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object