Hi, On 1/22/06, Trustin Lee <[EMAIL PROTECTED]> wrote: > Hi all, > > I refactored MINA API very heavily this weekend, and now it's time to show > the result to you. Please feel free to browse my branch here: > * No more transport-type specific property getters and setters. Now we use > IoAddress properties and the user-defined attributes in IoSession. For > example: > > ex1) IoService.bind( > "nio:socket:*:8080?reuseAddress=true&threadModel=normal&threadPoolSize=20&receiveBufferSize=4096", > new MyHandler() ); > ex2) session.setAttribute( "receiveBufferSize", new Integer( 2048 ) ); // > org.apache.mina.common.RuntimeIOException will be thrown if > this operation fails.
I really favor typesafe operations to string based ones. However as I see the new API uses more string based configuration. > Please feel free to criticize these changes. We're very open to your > feedback. More feedback, better API! :) -- Ersin
