Rob Withers 2013-05-16, 02:20
Jun Rao 2013-05-16, 05:03
-Re: could an Encoder/Decoder be stateful?
Jun Rao 2013-05-17, 04:04
The encoder instance can't be shared in different producers since it's
instantiated through java reflection. Decoder instance can actually be
shared by different consumers since it's passed in directly through the
On Thu, May 16, 2013 at 5:58 AM, Withers, Robert <[EMAIL PROTECTED]>wrote:
> Is there a way to share an encoder instance, or inject shared state,
> across producers/consumers? Guice?
> From: Jun Rao [[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2013 11:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: could an Encoder/Decoder be stateful?
> Each producer/consumer uses a single instance of the encoder/decoder.
> On Wed, May 15, 2013 at 7:20 PM, Rob Withers <[EMAIL PROTECTED]> wrote:
> > Or is the same instance used for each (un)marshaling? It would be nice
> > have a cache and a duplicateMsgChecker function, from the app above to
> > ensure transactional guarantees, and object ref substitutions during
> > (de)serialization, to enable durable distributed objects and promises.
> > Thanks,
> > rob
Rob Withers 2013-05-17, 05:06
Jun Rao 2013-05-17, 14:53