directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter royal <>
Subject Re: [mina] New configuration API
Date Fri, 27 Jan 2006 13:22:25 GMT
On Jan 26, 2006, at 6:00 PM, Trustin Lee wrote:
> It's because IoSessionConfigs are shared by both IoSession  
> implementations and IoServiceConfig implementations.  For example,  
> SocketAcceptorConfig.getSessionConfig() and  
> SocketSessionImpl.getConfig() will return SocketSessionConfig.  The  
> former won't throw any exception until a new session is created  
> because it just contains the default values of the new sessions.   
> The latter will throw SocketException because it *really* modifies  
> socket parameters.  I just wrapped SocketException with  
> RuntimeIOException because the SocketException is rarely thrown for  
> convenience.  Does this make sense?

Complete sense, thanks.. I didn't dig around enough to see the usage  
that did not throw exceptions.

(peter.royal|osi) -

View raw message