public interface BinaryMessage extends Message
BinaryMessage.Strict in which case
 the complete data is already available or it can be BinaryMessage.Streamed in which case dataStream
 will return a Source streaming the data as it comes in.| Modifier and Type | Interface and Description | 
|---|---|
| static class  | BinaryMessage.Streamed | 
| static class  | BinaryMessage.Streamed$ | 
| static class  | BinaryMessage.StrictA strict  BinaryMessagethat contains the complete data as apekko.util.ByteString. | 
| static class  | BinaryMessage.Strict$ | 
| Modifier and Type | Method and Description | 
|---|---|
| BinaryMessage | asScala() | 
| org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString,?> | dataStream()The contents of this message as a stream. | 
| org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString,?> | getStreamedData()Java API | 
| scala.concurrent.Future<BinaryMessage.Strict> | toStrict(scala.concurrent.duration.FiniteDuration timeout,
        org.apache.pekko.stream.Materializer fm)Collects all possible parts and returns a potentially future Strict Message for easier processing. | 
| java.util.concurrent.CompletionStage<BinaryMessage.Strict> | toStrict(long timeoutMillis,
        org.apache.pekko.stream.Materializer materializer) | 
org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString,?> dataStream()
scala.concurrent.Future<BinaryMessage.Strict> toStrict(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm)
timeout - (undocumented)fm - (undocumented)org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString,?> getStreamedData()
BinaryMessage asScala()
java.util.concurrent.CompletionStage<BinaryMessage.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer)