org.jbpm.runtime.manager.impl.tx

## Class DisposeSessionTransactionSynchronization

- java.lang.Object
- - org.drools.persistence.api.OrderedTransactionSynchronization
  - - org.jbpm.runtime.manager.impl.tx.DisposeSessionTransactionSynchronization

- All Implemented Interfaces:
    Comparable<org.drools.persistence.api.OrderedTransactionSynchronization>, org.drools.persistence.api.TransactionSynchronization

      public class DisposeSessionTransactionSynchronization
      extends org.drools.persistence.api.OrderedTransactionSynchronization

  Transaction synchronization that disposes of the `KieSession` instance on transaction completion during the `afterCompletion` phase.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DisposeSessionTransactionSynchronization(org.kie.api.runtime.manager.RuntimeManager manager, org.kie.api.runtime.manager.RuntimeEngine runtime)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `afterCompletion(int status)`
    `void` | `beforeCompletion()`

    - ### Methods inherited from class org.drools.persistence.api.OrderedTransactionSynchronization

      `compareTo, getIdentifier, getOrder, setIdentifier, setOrder`

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DisposeSessionTransactionSynchronization

          public DisposeSessionTransactionSynchronization(org.kie.api.runtime.manager.RuntimeManager manager,
                                                          org.kie.api.runtime.manager.RuntimeEngine runtime)

  - ### Method Detail

    - #### beforeCompletion

          public void beforeCompletion()

    - #### afterCompletion

          public void afterCompletion(int status)

Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.