Just to follow up,
There was no need for an enhancement request. I was able to implement my
own 'PackedLayout' and 'PackedLogEventBridge' that serialize my particular
LogEvents efficiently to/from byte array in exactly the way I wanted (by
making some assumptions not suitable for general-purpose use).
Thanks for the advice and for the well-designed interfaces!
Scott
On Fri, 11 Jul 2014, Ralph Goers wrote:
Sounds good.
This approach allows for many different serialization formats. It might
be nice to have the CompactBinaryLayout even be “pluggable” to support
things like Hessian, Protobuf, Thrift, etc. Of course, that would also
require the LogEventBridge to have support as well.
Ralph
On Jul 11, 2014, at 10:14 AM, Scott Harrington <[email protected]> wrote:
OK! Agree. So the 2.1 enhancement request will be for a
CompactBinaryLayout on the sending side and corresponding
LogEventBridge on the receiving side. I'll open it in JIRA when I get
back from vacation and have a chance to work through an initial
implementation, unless someone else beats me to it.
Current 'Serializable' form is a bit chatty but is easier (automatic)
to maintain. Forget I ever said anything about Externalizable.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]