public enum TransactionPolicy extends Enum<TransactionPolicy> implements Policy
Policy.PolicyType
Enum Constant and Description |
---|
MANAGED_TRANSACTION_GLOBAL
Uses any existing global transaction propagated from the client
or else begins and complete a new global transaction.
|
MANAGED_TRANSACTION_LOCAL
SwitchYard runtime begins and complete a Local Transaction Containment for each Exchange.
|
NO_MANAGED_TRANSACTION
SwitchYard runtime doesn't start any transaction.
|
PROPAGATES_TRANSACTION
Any existing transaction should continue and be used during the invocation.
|
SUSPENDS_TRANSACTION
Any existing transaction should be suspended before the invocation takes place.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the string identifier for the policy.
|
Policy |
getPolicyDependency()
Returns a policy which is a dependency of this Policy.
|
QName |
getQName()
Returns the qualified identifier for the policy.
|
String |
toString() |
static TransactionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
isCompatibleWith, supports
public static final TransactionPolicy MANAGED_TRANSACTION_GLOBAL
public static final TransactionPolicy MANAGED_TRANSACTION_LOCAL
public static final TransactionPolicy NO_MANAGED_TRANSACTION
public static final TransactionPolicy PROPAGATES_TRANSACTION
public static final TransactionPolicy SUSPENDS_TRANSACTION
public static TransactionPolicy[] values()
for (TransactionPolicy c : TransactionPolicy.values()) System.out.println(c);
public static TransactionPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic QName getQName()
public String getName()
public String toString()
toString
in class Enum<TransactionPolicy>
public Policy getPolicyDependency()
Policy
getPolicyDependency
in interface Policy
Copyright © 2013–2019 JBoss by Red Hat. All rights reserved.