You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TimeoutHandler::onTimeout throws a checked exception if the implementation is unable to handle the timeout.
BatchEventProcessor::notifyTimeout catches Throwable, so no need for checked exception type.
The exception gets passed to the exception handler which may handle or bail out of the BatchEventProcessor::processEvents depending on the ExceptionHandler implementation.
This is leaning towards use of exceptions for control flow and perhaps we could look at returning something useful from TimeoutHandler::onTimeout instead?
The text was updated successfully, but these errors were encountered:
I think the ExceptionHandler is only leaning towards to graph all type exceptions and distributing to exception handler by excetion type.
Liking this way,TimeoutHandler::onTimeout can deal with itself exception and return something useful information about timeout:waitTime,isInterrupted,isDeadLock,etc.
Anykinds exception will deal with like this in disruptor.
TimeoutHandler::onTimeout
throws a checked exception if the implementation is unable to handle the timeout.BatchEventProcessor::notifyTimeout
catchesThrowable
, so no need for checked exception type.The exception gets passed to the exception handler which may handle or bail out of the
BatchEventProcessor::processEvents
depending on theExceptionHandler
implementation.This is leaning towards use of exceptions for control flow and perhaps we could look at returning something useful from
TimeoutHandler::onTimeout
instead?The text was updated successfully, but these errors were encountered: