james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Bagnara" <apa...@bago.org>
Subject Re: need suggestions for JAMES fast fail optimization
Date Wed, 03 Aug 2005 15:20:44 GMT
OK!

This is good for me.

Stefano

> The commandHandlers would not store any state and hence there 
> is no need for synchronization.
> 
> The logic would now be something like this.
> 
> At startup, all CommandHandlers are loaded.  The 
> CommandHandler Map is filled with CommandName as key and  
> CommandHandler object as value.
> 
> When SMTPSession gets a command it gets the appropriate 
> CommandHandler from the Map and handles the command. 
> 
> All the state is stored back in SMTPSession and hence there 
> can be single set CommandHandler objects.
> 
> Did I get it right?
> 
> --anagha
> 
> 
> 
> > 
> > Stefano
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> > For additional commands, e-mail: server-dev-help@james.apache.org
> > 
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message