On 6/21/07, Mark Webb <[EMAIL PROTECTED]> wrote:
That certainly would work.  Since you want a framework to be as flexible as
possible.

On 6/20/07, peter royal <[EMAIL PROTECTED]> wrote:
>
> On Jun 20, 2007, at 5:45 AM, Rob Butler wrote:
> > Can you make it a configurable option with the default being a
> > synchronized hashmap?
>
> yeah, i was thinking about this as well.. Maybe we just need a
> MapFactory that's used to create the structure hidden in the
> IoSession.. then people can plug in whatever they want (ie, if you
> only ever expect 3 things, you could custom-code a map implementation
> to do that)

What about putting the option in IoService?

IoAcceptor acceptor = ..;
acceptor.setSessionAttributeMapFactory(new MyMapFactory());

I thought about putting it to IoSessionConfig but the map can't be
changed once its created.

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to