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