protected static class MatsFuturizer.Promise<T> extends java.lang.Object implements java.lang.Comparable<MatsFuturizer.Promise<?>>
Modifier and Type | Field and Description |
---|---|
java.lang.String |
_correlationId |
java.lang.String |
_from |
java.util.concurrent.CompletableFuture<MatsFuturizer.Reply<T>> |
_future |
long |
_initiationTimestamp |
java.lang.Class<T> |
_replyClass |
long |
_timeoutTimestamp |
java.lang.String |
_to |
java.lang.String |
_traceId |
Constructor and Description |
---|
Promise(java.lang.String traceId,
java.lang.String correlationId,
java.lang.String from,
java.lang.String to,
long initiationTimestamp,
long timeoutTimestamp,
java.lang.Class<T> replyClass,
java.util.concurrent.CompletableFuture<MatsFuturizer.Reply<T>> future) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MatsFuturizer.Promise<?> o) |
public final java.lang.String _traceId
public final java.lang.String _correlationId
public final java.lang.String _from
public final java.lang.String _to
public final long _initiationTimestamp
public final long _timeoutTimestamp
public final java.lang.Class<T> _replyClass
public final java.util.concurrent.CompletableFuture<MatsFuturizer.Reply<T>> _future
public Promise(java.lang.String traceId, java.lang.String correlationId, java.lang.String from, java.lang.String to, long initiationTimestamp, long timeoutTimestamp, java.lang.Class<T> replyClass, java.util.concurrent.CompletableFuture<MatsFuturizer.Reply<T>> future)
public int compareTo(MatsFuturizer.Promise<?> o)
compareTo
in interface java.lang.Comparable<MatsFuturizer.Promise<?>>