[JBoss JIRA] (JGRP-2443) Merge ObjectMessage and ObjectMessageSerializable
by Bela Ban (Jira)
[ https://issues.redhat.com/browse/JGRP-2443?page=com.atlassian.jira.plugin... ]
Bela Ban resolved JGRP-2443.
----------------------------
Resolution: Done
> Merge ObjectMessage and ObjectMessageSerializable
> -------------------------------------------------
>
> Key: JGRP-2443
> URL: https://issues.redhat.com/browse/JGRP-2443
> Project: JGroups
> Issue Type: Enhancement
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Major
> Fix For: 5.0
>
>
> {{ObjectMessage}} has an {{object}} as payload, {{ObjectMessageSerializable}} inherits this and adds {{serialized_obj}}.
> The former has ~32 bytes in memory, the latter 40.
> The goal is not to increase the size of {{ObjectMessage}} to 40.
> Solution:
> * Create an ObjectWrapper class, taking an object and a serialized_version
> * This is used in the merged {{ObjectMessage}} class (size is still ~32 bytes)
> * When we have a SizeStreamable object, we set it as payload, otherwise we create an {{ObjectWrapper}} and set it as object.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 4 months