public interface XCallable<T> extends Callable<T>
The priority is useful when queuing callables for later
execution via the CallableQueueService
.
A higher number means a higher priority.
Modifier and Type | Method and Description |
---|---|
long |
getCreatedTime()
Returns the createdTime of the callable in milliseconds
|
String |
getEntityKey()
Return the lock key of the callable
|
String |
getKey()
Return the key of the callable
|
String |
getName()
Return the callable name.
|
int |
getPriority()
Return the priority of the callable.
|
String |
getType()
Return the callable type.
|
boolean |
inInterruptMode() |
void |
setInterruptMode(boolean mode)
set the mode of execution for the callable.
|
int getPriority()
String getType()
The callable type is used for concurrency throttling in the CallableQueueService
.
long getCreatedTime()
String getEntityKey()
void setInterruptMode(boolean mode)
mode
- the mode to setboolean inInterruptMode()
Copyright © 2018 Apache Software Foundation. All rights reserved.