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.
Interface which specifies a handler which will be called when the thread pool throws any exception.
- Since:
- 4.2.0 - 2022-07-14
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhandle(ReceivingService.ExecutorNames _executor, Exception _ex) Called to handle an exception.
-
Method Details
-
handle
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
-