Module: Synapse::Serialization::SerializationAware

Included in:
SerializationAwareEventMessage, SerializedMessage
Defined in:
lib/synapse/serialization/message/serialization_aware.rb

Overview

Contract for message implementations that are aware of the serialization component and can provide optimization for the serialization process

Instance Method Summary collapse

Instance Method Details

#serialize_metadata(serializer, expected_type) ⇒ SerializedObject

Parameters:

Returns:

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/synapse/serialization/message/serialization_aware.rb', line 9

def (serializer, expected_type)
  raise NotImplementedError
end

#serialize_payload(serializer, expected_type) ⇒ SerializedObject

Parameters:

Returns:

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/synapse/serialization/message/serialization_aware.rb', line 16

def serialize_payload(serializer, expected_type)
  raise NotImplementedError
end