public class MultiProcessManager extends Object
构造器和说明 |
---|
MultiProcessManager(Object object,
int count) |
MultiProcessManager(Object object,
int count,
String customClasspath) |
限定符和类型 | 方法和说明 |
---|---|
void |
addProcessBuildingListener(ProcessBuildingListener l) |
void |
addProcessFinishedListener(ProcessFinishedListener l) |
void |
getMessage(ProcessMessageListener listener)
设置接收每个子进程消息的监听类对象。
|
int |
getProcessCount() |
Map<Long,Long> |
getSubprocessThreadTimeMap() |
List<SubprocessThread> |
getThreadList() |
long |
getTimeout() |
void |
removeProcessBuildingListener(ProcessBuildingListener l) |
void |
Run() |
void |
send(ProcessSendListener listener)
设置多进程管理器内部子任务执行完后的通知监听类对象。
|
void |
setCancel(boolean cancel) |
void |
setProcessCount(int count) |
void |
setTimeout(int timeout) |
public MultiProcessManager(Object object, int count)
public void addProcessBuildingListener(ProcessBuildingListener l)
public void addProcessFinishedListener(ProcessFinishedListener l)
public void removeProcessBuildingListener(ProcessBuildingListener l)
public void getMessage(ProcessMessageListener listener)
listener
- 外部接收消息监听类对象实例。public void send(ProcessSendListener listener)
listener
- 外部接收子任务完成通知的监听类对象实例。public int getProcessCount()
public void setProcessCount(int count)
public long getTimeout()
public void setTimeout(int timeout)
public void setCancel(boolean cancel)
public void Run()
public List<SubprocessThread> getThreadList()
Copyright © 2021–2024 SuperMap. All rights reserved.