Package org.freedesktop.dbus.connections
Interface ReceivingService.IThreadPoolRetryHandler
-
- Enclosing class:
- ReceivingService
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface ReceivingService.IThreadPoolRetryHandlerInterface which specifies a handler which will be called when the thread pool throws any exception.- Since:
- 4.2.0 - 2022-07-14
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandle(ReceivingService.ExecutorNames _executor, java.lang.Exception _ex)Called to handle an exception.
-
-
-
Method Detail
-
handle
boolean handle(ReceivingService.ExecutorNames _executor, java.lang.Exception _ex)
Called to handle an exception.This method should return true to retry execution or false to just ignore the error and drop the unhandled message.
- Parameters:
_executor- the executor which has thrown the exception_ex- the exception which was thrown- Returns:
- true to retry execution of the failed runnable, false to ignore runnable
-
-