This commit is contained in:
@@ -75,6 +75,10 @@ public abstract class MessageAgent {
|
|||||||
this.timeoutExecutor.setRemoveOnCancelPolicy(true);
|
this.timeoutExecutor.setRemoveOnCancelPolicy(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isHashPool() {
|
||||||
|
return this.workExecutor != null;
|
||||||
|
}
|
||||||
|
|
||||||
public CompletableFuture<Map<String, Long>> start() {
|
public CompletableFuture<Map<String, Long>> start() {
|
||||||
final LinkedHashMap<String, Long> map = new LinkedHashMap<>();
|
final LinkedHashMap<String, Long> map = new LinkedHashMap<>();
|
||||||
final List<CompletableFuture> futures = new ArrayList<>();
|
final List<CompletableFuture> futures = new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user