Search in sources :

Example 31 with TimeoutException

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

the class ArchiveConductor method abort.

/**
 * {@inheritDoc}
 */
protected void abort() {
    try {
        isAbort = true;
        if (null != recorder) {
            recorder.abort();
        }
        if (null != replayer) {
            replayer.abort();
        }
        ctx.errorCounter().close();
        if (!ctx.abortLatch().await(AgentRunner.RETRY_CLOSE_TIMEOUT_MS * 3L, TimeUnit.MILLISECONDS)) {
            errorHandler.onError(new TimeoutException("awaiting abort latch", AeronException.Category.WARN));
        }
    } catch (final InterruptedException ignore) {
        Thread.currentThread().interrupt();
    }
}
Also used : TimeoutException(io.aeron.exceptions.TimeoutException)

Aggregations

TimeoutException (io.aeron.exceptions.TimeoutException)31 EpochClock (org.agrona.concurrent.EpochClock)4 ClusterException (io.aeron.cluster.client.ClusterException)2 MediaDriver (io.aeron.driver.MediaDriver)2 RedirectingNameResolver (io.aeron.test.driver.RedirectingNameResolver)2 AgentTerminationException (org.agrona.concurrent.AgentTerminationException)2 ReadableCounter (io.aeron.status.ReadableCounter)1