Package org.infinispan.interceptors
Class SyncInvocationStage
- java.lang.Object
-
- org.infinispan.interceptors.InvocationStage
-
- org.infinispan.interceptors.SyncInvocationStage
-
public class SyncInvocationStage extends InvocationStage
- Since:
- 9.0
- Author:
- Dan Berindei
-
-
Constructor Summary
Constructors Constructor Description SyncInvocationStage()SyncInvocationStage(java.lang.Object rv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectaddCallback(InvocationContext ctx, org.infinispan.commands.VisitableCommand command, InvocationCallback function)java.lang.Objectget()Wait for the invocation to complete and return its value.booleanisDone()java.util.concurrent.CompletableFuture<java.lang.Object>toCompletableFuture()CompletableFutureconversion.java.lang.StringtoString()-
Methods inherited from class org.infinispan.interceptors.InvocationStage
andExceptionally, andFinally, andHandle, thenAccept, thenApply
-
-
-
-
Method Detail
-
get
public java.lang.Object get() throws java.lang.ThrowableDescription copied from class:InvocationStageWait for the invocation to complete and return its value.- Specified by:
getin classInvocationStage- Throws:
java.lang.Throwable- Any exception raised during the invocation.
-
isDone
public boolean isDone()
- Specified by:
isDonein classInvocationStage- Returns:
trueif the invocation is complete.
-
toCompletableFuture
public java.util.concurrent.CompletableFuture<java.lang.Object> toCompletableFuture()
Description copied from class:InvocationStageCompletableFutureconversion.- Specified by:
toCompletableFuturein classInvocationStage
-
addCallback
public java.lang.Object addCallback(InvocationContext ctx, org.infinispan.commands.VisitableCommand command, InvocationCallback function)
- Specified by:
addCallbackin classInvocationStage
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-