ChannelHandler instance
Trustin Lee
tlee at redhat.com
Tue Mar 10 11:24:13 EDT 2009
For documentation purpose only at the moment, but I'd like to
implement some sort of detection mechanism if it can be very very
efficient.
HTH,
— Trustin Lee, http://gleamynode.net/
On Tue, Mar 10, 2009 at 11:00 PM, Bob Bucy <bob.bucy at gmail.com> wrote:
> Makes perfect sense, sounds like I have the control in my
> ChannelPipelineFactory in terms of creating the handler instances.
> Just one add-on, how does the ChannelPipelineCoverage annotation come
> into the picture or is this mainly used for documenting the handler
> and/or future use?
>
> On Mon, Mar 9, 2009 at 4:43 PM, Trustin Lee <tlee at redhat.com> wrote:
>> .....
>> As long as you create a new instance for a new pipeline, your
>> assumption is correct. Your ChannelPipelineFactory seems to append a
>> new handler instance per pipeline, and therefore it just works as you
>> expected. If you maintained a singleton of the handler instance and
>> added the same instance to multiple pipelines, it would have not
>> worked.
>>
>> HTH,
>>
>> — Trustin Lee, http://gleamynode.net/
>>
>
More information about the netty-users
mailing list