diff --git a/src/main/java/com/ishland/flowsched/scheduler/ItemHolder.java b/src/main/java/com/ishland/flowsched/scheduler/ItemHolder.java index 67ff3a3..9c1caf5 100644 --- a/src/main/java/com/ishland/flowsched/scheduler/ItemHolder.java +++ b/src/main/java/com/ishland/flowsched/scheduler/ItemHolder.java @@ -256,6 +256,13 @@ public K getKey() { public synchronized CompletableFuture getFutureForStatus(ItemStatus status) { return this.futures[status.ordinal()].thenApply(Function.identity()); } + + /** + * Only for trusted methods + */ + public synchronized CompletableFuture getFutureForStatus0(ItemStatus status) { + return this.futures[status.ordinal()]; + } public AtomicReference getItem() { return this.item;