Search in sources :

Example 1 with ConcurrentConcludeException

use of io.aeron.exceptions.ConcurrentConcludeException in project Aeron by real-logic.

the class CommonContext method conclude.

/**
 * This completes initialization of the CommonContext object. It is automatically called by subclasses.
 *
 * @return this Object for method chaining.
 */
public CommonContext conclude() {
    if (0 != IS_CONCLUDED_UPDATER.getAndSet(this, 1)) {
        throw new ConcurrentConcludeException();
    }
    concludeAeronDirectory();
    cncFile = new File(aeronDirectory, CncFileDescriptor.CNC_FILE);
    return this;
}
Also used : ConcurrentConcludeException(io.aeron.exceptions.ConcurrentConcludeException) File(java.io.File)

Example 2 with ConcurrentConcludeException

use of io.aeron.exceptions.ConcurrentConcludeException in project aeron by real-logic.

the class CommonContext method conclude.

/**
 * This completes initialization of the CommonContext object. It is automatically called by subclasses.
 *
 * @return this Object for method chaining.
 */
public CommonContext conclude() {
    if (0 != IS_CONCLUDED_UPDATER.getAndSet(this, 1)) {
        throw new ConcurrentConcludeException();
    }
    concludeAeronDirectory();
    cncFile = new File(aeronDirectory, CncFileDescriptor.CNC_FILE);
    return this;
}
Also used : ConcurrentConcludeException(io.aeron.exceptions.ConcurrentConcludeException) File(java.io.File)

Aggregations

ConcurrentConcludeException (io.aeron.exceptions.ConcurrentConcludeException)2 File (java.io.File)2