Package io.mats3.util
Class MatsFuturizer.Reply<T>
java.lang.Object
io.mats3.util.MatsFuturizer.Reply<T>
- Type Parameters:
T
- the type of the reply class.
- Enclosing class:
- MatsFuturizer
An instance of this class will be the return value of any
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.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReply
(MatsEndpoint.DetachedProcessContext context, T reply, long initiationTimestamp) -
Method Summary
-
Field Details
-
context
-
reply
-
initiationTimestamp
public final long initiationTimestamp
-
-
Constructor Details
-
Reply
-
-
Method Details
-
getContext
-
getReply
-
getInitiationTimestamp
public long getInitiationTimestamp()
-