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(Object rv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
addCallback(InvocationContext ctx, org.infinispan.commands.VisitableCommand command, InvocationCallback function)
Object
get()
Wait for the invocation to complete and return its value.boolean
isDone()
CompletableFuture<Object>
toCompletableFuture()
CompletableFuture
conversion.String
toString()
-
Methods inherited from class org.infinispan.interceptors.InvocationStage
andExceptionally, andFinally, andHandle, thenAccept, thenApply
-
-
-
-
Constructor Detail
-
SyncInvocationStage
public SyncInvocationStage(Object rv)
-
SyncInvocationStage
public SyncInvocationStage()
-
-
Method Detail
-
get
public Object get() throws Throwable
Description copied from class:InvocationStage
Wait for the invocation to complete and return its value.- Specified by:
get
in classInvocationStage
- Throws:
Throwable
- Any exception raised during the invocation.
-
isDone
public boolean isDone()
- Specified by:
isDone
in classInvocationStage
- Returns:
true
if the invocation is complete.
-
toCompletableFuture
public CompletableFuture<Object> toCompletableFuture()
Description copied from class:InvocationStage
CompletableFuture
conversion.- Specified by:
toCompletableFuture
in classInvocationStage
-
addCallback
public Object addCallback(InvocationContext ctx, org.infinispan.commands.VisitableCommand command, InvocationCallback function)
- Specified by:
addCallback
in classInvocationStage
-
-