org.wildfly.swarm.config.infinispan.cache_container

## Class TransactionComponent<T extends TransactionComponent<T>>

- java.lang.Object
- - java.util.AbstractMap<K,V>
  - - java.util.HashMap
    - - org.wildfly.swarm.config.infinispan.cache_container.TransactionComponent<T>

- All Implemented Interfaces:
    Serializable, Cloneable, Map

      public class TransactionComponent<T extends TransactionComponent<T>>
      extends HashMap

  The cache transaction configuration.
  See Also:
    Serialized Form

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `TransactionComponent.Locking`
    `static class` | `TransactionComponent.Mode`

    - ### Nested classes/interfaces inherited from class java.util.AbstractMap

      `AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>`

    - ### Nested classes/interfaces inherited from interface java.util.Map

      `Map.Entry<K,V>`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TransactionComponent()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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.

    - ### Methods inherited from class java.util.HashMap

      `clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values`

    - ### Methods inherited from class java.util.AbstractMap

      `equals, hashCode, toString`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface java.util.Map

      `equals, hashCode`

- - ### Constructor Detail

    - #### TransactionComponent

          public TransactionComponent()

  - ### Method Detail

    - #### getKey

          public String getKey()

    - #### addPropertyChangeListener

          public void addPropertyChangeListener(PropertyChangeListener listener)

      Adds a property change listener

    - #### removePropertyChangeListener

          public void removePropertyChangeListener(PropertyChangeListener listener)

      Removes a property change listener

    - #### commits

          public Long commits()

      The number of transaction commits. May return null if the cache is not started.

    - #### commits

          public T commits(Long value)

      The number of transaction commits. May return null if the cache is not started.

    - #### locking

          public TransactionComponent.Locking locking()

      The locking mode for this cache, one of OPTIMISTIC or PESSIMISTIC.

    - #### locking

          public T locking(TransactionComponent.Locking value)

      The locking mode for this cache, one of OPTIMISTIC or PESSIMISTIC.

    - #### mode

          public TransactionComponent.Mode mode()

      Sets the cache transaction mode to one of NONE, NON_XA, NON_DURABLE_XA, FULL_XA.

    - #### mode

          public T mode(TransactionComponent.Mode value)

      Sets the cache transaction mode to one of NONE, NON_XA, NON_DURABLE_XA, FULL_XA.

    - #### prepares

          public Long prepares()

      The number of transaction prepares. May return null if the cache is not started.

    - #### prepares

          public T prepares(Long value)

      The number of transaction prepares. May return null if the cache is not started.

    - #### rollbacks

          public Long rollbacks()

      The number of transaction rollbacks. May return null if the cache is not started.

    - #### rollbacks

          public T rollbacks(Long value)

      The number of transaction rollbacks. May return null if the cache is not started.

    - #### stopTimeout

          public Long stopTimeout()

      If there are any ongoing transactions when a cache is stopped, Infinispan waits for ongoing remote and local transactions to finish. The amount of time to wait for is defined by the cache stop timeout.

    - #### stopTimeout

          public 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. The amount of time to wait for is defined by the cache stop timeout.

Copyright © 2018 JBoss by Red Hat. All rights reserved.