This commit is contained in:
Redkale
2020-11-10 21:11:11 +08:00
parent d7da527bd5
commit ed502daeb9

View File

@@ -75,6 +75,10 @@ public abstract class MessageAgent {
this.timeoutExecutor.setRemoveOnCancelPolicy(true);
}
public boolean isHashPool() {
return this.workExecutor != null;
}
public CompletableFuture<Map<String, Long>> start() {
final LinkedHashMap<String, Long> map = new LinkedHashMap<>();
final List<CompletableFuture> futures = new ArrayList<>();