On Mar 12, 2006, at 1:08 AM, trustin@apache.org wrote:
> * Returns a new (or reusable) instance of {@link
> ProtocolEncoder} which
> * encodes message objects into binary or protocol-specific data.
> */
> - ProtocolEncoder getEncoder();
> + ProtocolEncoder getEncoder() throws Exception;
>
> /**
> * Returns a new (or reusable) instance of {@link
> ProtocolDecoder} which
> * decodes binary or protocol-specific data into message objects.
> */
> - ProtocolDecoder getDecoder();
> + ProtocolDecoder getDecoder() throws Exception;
Performance will suck if shared instances are returned due to
synchronization on the returned instances in the
ProtocolCodecFilter... Unless the synchronization is removed, it
would be unadvisable to return shared instances.
-pete (discovered this the hard way)
--
proyal@apache.org - http://fotap.org/~osi
|