public static class ImmutableCastMessage.ImmutableStringCastMessage extends ImmutableCastMessage
ImmutableCastMessage implementation for string payloads.ImmutableCastMessage.ImmutableBinaryCastMessage, ImmutableCastMessage.ImmutableStringCastMessage| Modifier and Type | Field and Description |
|---|---|
protected String |
payload
The message payload
|
destinationId, namespace, protocolVersion, sourceId| Constructor and Description |
|---|
ImmutableStringCastMessage(String destinationId,
String namespace,
String payload,
CastChannel.CastMessage.ProtocolVersion protocolVersion,
String sourceId)
Creates a new instance using the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPayload() |
create, getDestinationId, getNamespace, getProtocolVersion, getSourceIdpublic ImmutableStringCastMessage(@Nonnull String destinationId, @Nonnull String namespace, @Nonnull String payload, @Nonnull CastChannel.CastMessage.ProtocolVersion protocolVersion, @Nonnull String sourceId)
destinationId - the destination ID.namespace - the namespace.payload - the string payload.protocolVersion - the protocol version.sourceId - the source ID.IllegalArgumentException - If any of the parameters are
null.Copyright © 2022. All rights reserved.