Re: Thread safety of encoders

2014-10-24 Thread Jun Rao
At this moment, the encoder is called from a single thread per producer instance. Thanks, Jun On Thu, Oct 23, 2014 at 8:20 PM, Rajiv Kurian wrote: > Are encoders only ever called from a single thread? > > I have a stateful utility class that I use to encode my objects. Is it safe > to only cre

Thread safety of encoders

2014-10-23 Thread Rajiv Kurian
Are encoders only ever called from a single thread? I have a stateful utility class that I use to encode my objects. Is it safe to only create a single instance? Something like this: MyObjectEncoder public class MyObjectEncoder implements Encoder { private final MyObjectEncoderHelper helper