Package org.apache.druid.messages.client
Interface MessageRelayClient<MessageType>
- All Known Implementing Classes:
MessageRelayClientImpl
public interface MessageRelayClient<MessageType>
Client for
MessageRelayResource.-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<MessageBatch<MessageType>>getMessages(String clientHost, long epoch, long startWatermark) Get the next batch of messages from an outbox.
-
Method Details
-
getMessages
com.google.common.util.concurrent.ListenableFuture<MessageBatch<MessageType>> getMessages(String clientHost, long epoch, long startWatermark) Get the next batch of messages from an outbox.- Parameters:
clientHost- which outbox to retrieve messages from. Each clientHost has its own outbox.epoch- outbox epoch, orMessageRelay.INITif this is the first call from the collector.startWatermark- outbox message watermark to retrieve from.- Returns:
- future that resolves to the next batch of messages
- See Also:
-