public class ThreadContainerPool extends ContainerPool
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
destroyByInstance(long jobInstanceId)
destroy pool by jobInstance
|
JobContext |
getContext() |
static ThreadContainerPool |
getInstance() |
Object |
getInstanceLock(long jobInstanceId)
获取指定任务实例锁对象
|
void |
releaseInstanceLock(long jobInstanceId)
清除任务实例锁对象
|
void |
removeContext() |
void |
setContext(JobContext jobContext) |
void |
submit(long jobId,
long jobInstanceId,
long taskId,
Container container,
int consumerSize)
submit task container
|
contain, get, getContainerMap, put, remove, setContainerMappublic static ThreadContainerPool getInstance()
public void submit(long jobId,
long jobInstanceId,
long taskId,
Container container,
int consumerSize)
ContainerPoolsubmit 在类中 ContainerPooljobId - job idjobInstanceId - instance identificationtaskId - task identificationcontainer - running containerconsumerSize - running container service max capacitypublic boolean destroyByInstance(long jobInstanceId)
ContainerPooldestroyByInstance 在类中 ContainerPooljobInstanceId - instance identificationpublic void setContext(JobContext jobContext)
setContext 在类中 ContainerPoolpublic JobContext getContext()
getContext 在类中 ContainerPoolpublic void removeContext()
removeContext 在类中 ContainerPoolpublic Object getInstanceLock(long jobInstanceId)
ContainerPoolgetInstanceLock 在类中 ContainerPoolpublic void releaseInstanceLock(long jobInstanceId)
ContainerPoolreleaseInstanceLock 在类中 ContainerPoolCopyright © 2022. All rights reserved.