Skip to content

Instantly share code, notes, and snippets.

@umermansoor
Created December 23, 2013 05:30
Show Gist options
  • Save umermansoor/8092116 to your computer and use it in GitHub Desktop.
Save umermansoor/8092116 to your computer and use it in GitHub Desktop.
/**
* 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