Search in sources :

Example 1 with InvalidEventHandlerException

use of net.openhft.chronicle.core.threads.InvalidEventHandlerException in project Chronicle-Queue by OpenHFT.

the class EventLoopServiceWrapper method action.

@Override
public boolean action() throws InvalidEventHandlerException, InterruptedException {
    if (isClosed()) {
        Closeable.closeQuietly(serviceImpl);
        Closeable.closeQuietly(serviceIn);
        Closeable.closeQuietly(outputQueue);
        Closeable.closeQuietly(inputQueues);
        throw new InvalidEventHandlerException();
    }
    boolean busy = false;
    for (MethodReader reader : serviceIn) {
        busy |= reader.readOne();
    }
    return busy;
}
Also used : InvalidEventHandlerException(net.openhft.chronicle.core.threads.InvalidEventHandlerException) MethodReader(net.openhft.chronicle.bytes.MethodReader)

Aggregations

MethodReader (net.openhft.chronicle.bytes.MethodReader)1 InvalidEventHandlerException (net.openhft.chronicle.core.threads.InvalidEventHandlerException)1