com.linkedin.r2.message.stream.StreamMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of r2-core Show documentation
Show all versions of r2-core Show documentation
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 extends StreamMessageBuilder>> builder();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy