All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.co.codera.lang.concurrent.TaskCallbackAdapter Maven / Gradle / Ivy

package uk.co.codera.lang.concurrent;

/**
 * 

* Implementation of the {@link TaskCallback} where all the methods have a do * nothing implementation. *

*

* Rather than implement the interface directly clients should extend this class * and override behaviour as necessary. This will ensure that if methods are * added to the interface in the future client code will still compile as a do * nothing implementation will be added to this class. *

* * @author andystewart */ public class TaskCallbackAdapter implements TaskCallback { @Override public void onTaskExecuted(T task) { // do nothing } @Override public void onTaskFailure(T task, RuntimeException e) { // do nothing } @Override public void onTaskCancelled(T task) { // do nothing } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy