Example usage for org.apache.commons.transaction.file ResourceManager SHUTDOWN_MODE_NORMAL

List of usage examples for org.apache.commons.transaction.file ResourceManager SHUTDOWN_MODE_NORMAL

Introduction

In this page you can find the example usage for org.apache.commons.transaction.file ResourceManager SHUTDOWN_MODE_NORMAL.

Prototype

int SHUTDOWN_MODE_NORMAL

To view the source code for org.apache.commons.transaction.file ResourceManager SHUTDOWN_MODE_NORMAL.

Click Source Link

Document

Shutdown mode: Wait for all transactions to complete

Usage

From source file:org.apache.slide.store.txfile.AbstractTxFileStoreService.java

public void disconnect() throws ServiceDisconnectionFailedException {
    try {// w w  w  .j  a v  a 2  s  .  c o m
        if (!rm.stop(ResourceManager.SHUTDOWN_MODE_NORMAL)) {
            throw new ServiceDisconnectionFailedException(this, "Shut down timed out");
        }
        started = false;
    } catch (ResourceManagerException e) {
        throw new ServiceDisconnectionFailedException(this, e);
    }
}