All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.linkedin.r2.message.stream.StreamMessage Maven / Gradle / Ivy

Go to download

Pegasus is a framework for building robust, scalable service architectures using dynamic discovery and simple asychronous type-checked REST + JSON APIs.

The newest version!
package com.linkedin.r2.message.stream;

import com.linkedin.r2.message.MessageHeaders;
import com.linkedin.r2.message.stream.entitystream.EntityStream;

/**
 * StreamMessage is a message with MessageHeaders and an EntityStream as its entity.
 * StreamMessage is not immutable and in general cannot be reused.
 *
 * @author Zhenkai Zhu
 */
public interface StreamMessage extends MessageHeaders
{
  /**
   * Returns the EntityStream for this message. The entity stream can only be read once (i.e. Message
   * does not keep a copy of the whole entity).
   *
   * @return the EntityStream of this message.
   */
  EntityStream getEntityStream();

  StreamMessageBuilder> builder();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy