T
- the type of the reply class.public static class MatsFuturizer.Reply<T>
extends java.lang.Object
CompletableFuture
s created with the
MatsFuturizer
. It will contain the reply from the requested endpoint, and the
MatsEndpoint.DetachedProcessContext
from the received message, from where you can get any incoming
"sideloads"
and other metadata. It also contains a timestamp of
when the outgoing message was initiated.Modifier and Type | Field and Description |
---|---|
MatsEndpoint.DetachedProcessContext |
context |
long |
initiationTimestamp |
T |
reply |
Constructor and Description |
---|
Reply(MatsEndpoint.DetachedProcessContext context,
T reply,
long initiationTimestamp) |
Modifier and Type | Method and Description |
---|---|
MatsEndpoint.DetachedProcessContext |
getContext() |
long |
getInitiationTimestamp() |
T |
getReply() |
public final MatsEndpoint.DetachedProcessContext context
public final T reply
public final long initiationTimestamp
public Reply(MatsEndpoint.DetachedProcessContext context, T reply, long initiationTimestamp)
public MatsEndpoint.DetachedProcessContext getContext()
public T getReply()
public long getInitiationTimestamp()