Top Description Methods
org.freedesktop.dbus.connections.shared

public Interface IThreadPoolRetryHandler

Annotations
@FunctionalInterface

Interface which specifies a handler which will be called when the thread pool throws any exception.
Author
hypfvieh
Since
4.2.0 - 2022-07-14

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true to retry execution of the failed runnable, false to ignore runnable
handle
(ExecutorNames
the executor which has thrown the exception
_executor
,
Exception
the exception which was thrown
_ex
)

Called to handle an exception.

Method Detail

handleback to summary
public boolean handle(ExecutorNames _executor, 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:ExecutorNames

the executor which has thrown the exception

_ex:Exception

the exception which was thrown

Returns:boolean

true to retry execution of the failed runnable, false to ignore runnable