@Addresses(value={"/subsystem=infinispan/cache-container=*/invalidation-cache=*/component=transaction","/subsystem=infinispan/cache-container=*/local-cache=*/component=transaction","/subsystem=infinispan/cache-container=*/replicated-cache=*/component=transaction","/subsystem=infinispan/cache-container=*/distributed-cache=*/component=transaction"}) @Implicit public class TransactionComponent<T extends TransactionComponent<T>> extends HashMap implements Keyed
| Modifier and Type | Class and Description |
|---|---|
static class |
TransactionComponent.Locking |
static class |
TransactionComponent.Mode |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TransactionComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Long |
commits()
The number of transaction commits.
|
T |
commits(Long value)
The number of transaction commits.
|
String |
getKey() |
TransactionComponent.Locking |
locking()
The locking mode for this cache, one of OPTIMISTIC or PESSIMISTIC.
|
T |
locking(TransactionComponent.Locking value)
The locking mode for this cache, one of OPTIMISTIC or PESSIMISTIC.
|
TransactionComponent.Mode |
mode()
Sets the cache transaction mode to one of NONE, NON_XA, NON_DURABLE_XA,
FULL_XA.
|
T |
mode(TransactionComponent.Mode value)
Sets the cache transaction mode to one of NONE, NON_XA, NON_DURABLE_XA,
FULL_XA.
|
Long |
prepares()
The number of transaction prepares.
|
T |
prepares(Long value)
The number of transaction prepares.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Long |
rollbacks()
The number of transaction rollbacks.
|
T |
rollbacks(Long value)
The number of transaction rollbacks.
|
Long |
stopTimeout()
If there are any ongoing transactions when a cache is stopped, Infinispan
waits for ongoing remote and local transactions to finish.
|
T |
stopTimeout(Long value)
If there are any ongoing transactions when a cache is stopped, Infinispan
waits for ongoing remote and local transactions to finish.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
@ModelNodeBinding(detypedName="commits") public Long commits()
public T commits(Long value)
@ModelNodeBinding(detypedName="locking") public TransactionComponent.Locking locking()
public T locking(TransactionComponent.Locking value)
@ModelNodeBinding(detypedName="mode") public TransactionComponent.Mode mode()
public T mode(TransactionComponent.Mode value)
@ModelNodeBinding(detypedName="prepares") public Long prepares()
public T prepares(Long value)
@ModelNodeBinding(detypedName="rollbacks") public Long rollbacks()
public T rollbacks(Long value)
@ModelNodeBinding(detypedName="stop-timeout") public Long stopTimeout()
Copyright © 2016 JBoss by Red Hat. All rights reserved.