Class RequestReplyMessageFuture<K,V>
- java.lang.Object
-
- org.springframework.util.concurrent.SettableListenableFuture<org.springframework.messaging.Message<?>>
-
- org.springframework.kafka.requestreply.RequestReplyMessageFuture<K,V>
-
- Type Parameters:
K
- the key type.V
- the outbound data type.
- All Implemented Interfaces:
java.util.concurrent.Future<org.springframework.messaging.Message<?>>
,org.springframework.util.concurrent.ListenableFuture<org.springframework.messaging.Message<?>>
- Direct Known Subclasses:
RequestReplyTypedMessageFuture
public class RequestReplyMessageFuture<K,V> extends org.springframework.util.concurrent.SettableListenableFuture<org.springframework.messaging.Message<?>>
A listenable future forMessage
replies.- Since:
- 2.7
- Author:
- Gary Russell
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RequestReplyMessageFuture.Completable
ACompletableFuture
version.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.CompletableFuture<SendResult<K,V>>
completableSendFuture
protected org.springframework.util.concurrent.ListenableFuture<SendResult<K,V>>
sendFuture
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestReplyMessageFuture.Completable
asCompletable()
Return aCompletableFuture
representation of this instance.org.springframework.util.concurrent.ListenableFuture<SendResult<K,V>>
getSendFuture()
Return the send future.
-
-
-
Field Detail
-
sendFuture
protected final org.springframework.util.concurrent.ListenableFuture<SendResult<K,V>> sendFuture
-
completableSendFuture
protected java.util.concurrent.CompletableFuture<SendResult<K,V>> completableSendFuture
-
-
Method Detail
-
getSendFuture
public org.springframework.util.concurrent.ListenableFuture<SendResult<K,V>> getSendFuture()
Return the send future.- Returns:
- the send future.
-
asCompletable
public RequestReplyMessageFuture.Completable asCompletable()
Return aCompletableFuture
representation of this instance.- Returns:
- the
CompletableFuture
. - Since:
- 2.9
-
-