public interface TextMessage extends Message
TextMessage.Strict
in which case
the complete data is already available or it can be TextMessage.Streamed
in which case textStream
will return a Source streaming the data as it comes in.Modifier and Type | Interface and Description |
---|---|
static class |
TextMessage.Streamed |
static class |
TextMessage.Streamed$ |
static class |
TextMessage.Strict
A strict
TextMessage that contains the complete data as a String . |
static class |
TextMessage.Strict$ |
Modifier and Type | Method and Description |
---|---|
TextMessage |
asScala() |
akka.stream.javadsl.Source<java.lang.String,?> |
getStreamedText()
Java API
|
akka.stream.scaladsl.Source<java.lang.String,?> |
textStream()
The contents of this message as a stream.
|
akka.stream.scaladsl.Source<java.lang.String,?> textStream()
akka.stream.javadsl.Source<java.lang.String,?> getStreamedText()
TextMessage asScala()