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 ClassesNested classes/interfaces inherited from interface com.tick42.glue.core.interop.invoke.MethodInvocationResponse
MethodInvocationResponse.Status -
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.tick42.glue.core.interop.invoke.MethodInvocationResponse
getMethod, getReturned, getStatus
-
Method Details
-
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.
-
iterator
Iterator<MethodInvocationResponse<T>> iterator()Returniteratorover all received responses.
-