class Movie::Cluster::ShardingMessage

Overview

Nested message payload with a direct JSON writer. The type tag precedes the value on the wire, allowing the receiving pull parser to decode a registered message without materializing JSON::Any or an intermediate payload String.

Defined in:

movie/cluster/sharding/model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(message_type : String, payload : Movie::Remote::JsonPayload, wrapper : Movie::Remote::MessageWrapper | Nil = nil) #

[View source]

Instance Method Detail

def message_type : String #

[View source]

[View source]
def wrapper : Movie::Remote::MessageWrapper | Nil #

[View source]