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();
}
}
Aggregations