
org.freedesktop.dbus.connections.shared.IThreadPoolRetryHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dbus-java-osgi Show documentation
Show all versions of dbus-java-osgi Show documentation
Improved version of the DBus-Java library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/).
This is the OSGi compliant bundle of all required libraries in one bundle.
package org.freedesktop.dbus.connections.shared;
/**
* 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
*/
@FunctionalInterface
public interface IThreadPoolRetryHandler {
/**
* 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.
*
*
* @param _executor the executor which has thrown the exception
* @param _ex the exception which was thrown
*
* @return true to retry execution of the failed runnable, false to ignore runnable
*/
boolean handle(ExecutorNames _executor, Exception _ex);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy