
org.threadly.concurrent.CallableContainer Maven / Gradle / Ivy
package org.threadly.concurrent;
import java.util.concurrent.Callable;
/**
* Interface to implement if any classes are containing a callable. This interface must be
* implemented in order for the {@link PriorityScheduler} (and others) remove function to work
* correctly if that wrapper is ever provided to the thread pool.
*
* @since 4.3.0 (since 1.0.0 as CallableContainerInterface)
* @param Type for type of callable contained
*/
public interface CallableContainer {
/**
* Call to get the contained callable held within the wrapper.
*
* @return callable contained within wrapper, or {@code null} if none is contained
*/
public Callable getContainedCallable();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy