Interface JsonMessage
-
- All Superinterfaces:
Message
public interface JsonMessage extends Message
Interface for sending JSON messages.A new
JsonMessage
can be instantiated by callingCachedMessageFactory.createJsonMessage(String, Object)
(CachedMessageFactory is available viaCachingPublisher.getCachedMessageFactory()
getCachedMessageFactory()}).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getJson()
Gets the JSON string of the message.boolean
isPatch()
Is this JSON message a patch of existing data.-
Methods inherited from interface com.caplin.datasource.messaging.Message
getMessageType, getSubject, isImage, setImage
-
-
-
-
Method Detail
-
getJson
String getJson()
Gets the JSON string of the message.- Returns:
- The JSON string.
-
isPatch
boolean isPatch()
Is this JSON message a patch of existing data.- Returns:
- Whether the JSON message is a patch or not.
-
-