Created
December 23, 2013 05:30
-
-
Save umermansoor/8092116 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Custom Callable Interface with Id. | |
* @author umermansoor | |
*/ | |
public interface IdentifiableCallable extends Callable { | |
int getId(); // For getting task Id | |
void cancelTask(); // Method for supporting non-standard cancellation | |
RunnableFuture newTask(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment