Interface MethodInvocationResult<T>
-
- Type Parameters:
T- type of the returned response(s)
- All Superinterfaces:
Iterable<MethodInvocationResponse<T>>,MethodInvocationResponse<T>
public interface MethodInvocationResult<T> extends MethodInvocationResponse<T>, Iterable<MethodInvocationResponse<T>>
Holds responses received for a method invocation.Depending on the invocation options and currently available servers this result may contain a single response, multiple responses or no response (e.g. fire 'n forget).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMethodInvocationResult.Type-
Nested classes/interfaces inherited from interface com.tick42.glue.core.interop.invoke.MethodInvocationResponse
MethodInvocationResponse.Status
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MethodInvocationResult.TypegetType()Return the type of the result.default booleanhasMultipleResponses()Whether this result contains multiple responses.Iterator<MethodInvocationResponse<T>>iterator()Returniteratorover all received responses.-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface com.tick42.glue.core.interop.invoke.MethodInvocationResponse
getMethod, getReturned, getStatus
-
-
-
-
Method Detail
-
getType
MethodInvocationResult.Type getType()
Return the type of the result.- Returns:
- type of the result as a
MethodInvocationResult.Typeenum value, nevernull
-
hasMultipleResponses
default boolean hasMultipleResponses()
Whether this result contains multiple responses.- Returns:
trueif this result contains multiple responses andfalseotherwise.
-
-