Interface MessageRelayClient<MessageType>

All Known Implementing Classes:
MessageRelayClientImpl

public interface MessageRelayClient<MessageType>
  • Method Summary

    Modifier and Type
    Method
    Description
    com.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, or MessageRelay.INIT if 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: