public class ExecutionContextImpl extends java.lang.Object implements ExecutionContext
ExecutionContext.State
Constructor and Description |
---|
ExecutionContextImpl(java.lang.Thread thread,
java.lang.String key,
java.lang.String group,
java.util.Date startTime) |
Modifier and Type | Method and Description |
---|---|
void |
addResource(CancelableResource resource)
add cancelable resource to the current execution
|
void |
clearResources() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getGroup() |
java.lang.String |
getKey() |
java.util.List<CancelableResource> |
getResources() |
java.util.Date |
getStartTime() |
ExecutionContext.State |
getState() |
java.lang.Thread |
getThread() |
int |
hashCode() |
boolean |
isCanceled() |
void |
removeResource(CancelableResource resource)
remove cancelable resource to the current execution
|
void |
setState(ExecutionContext.State state) |
public ExecutionContextImpl(java.lang.Thread thread, java.lang.String key, java.lang.String group, java.util.Date startTime)
public java.lang.String getKey()
getKey
in interface ExecutionContext
public java.lang.String getGroup()
getGroup
in interface ExecutionContext
public java.util.Date getStartTime()
getStartTime
in interface ExecutionContext
public boolean isCanceled()
isCanceled
in interface ExecutionContext
public ExecutionContext.State getState()
getState
in interface ExecutionContext
public void setState(ExecutionContext.State state)
public void addResource(CancelableResource resource)
ExecutionContext
addResource
in interface ExecutionContext
public void removeResource(CancelableResource resource)
ExecutionContext
removeResource
in interface ExecutionContext
public java.lang.Thread getThread()
public java.util.List<CancelableResource> getResources()
public void clearResources()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object