mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee" <trus...@gmail.com>
Subject Thread model configuration
Date Tue, 07 Mar 2006 15:21:37 GMT
Hi all,

I've been thinking of adding a thread model interface so users can configure
a thread model easily by calling a setter of IoServiceConfig.  For example:

acceptor.getConfig().setThreadModel( ThreadModel.SINGLE );

acceptor.getConfig().setThreadModel( new PooledThreadModel( ... ) );

I think this is much more intuitive than adding a thread pool filter and
managing life cycle of it.  Of course, it will be implemented as a filter

Besides this, a reconnection policy of a IoConnector could be configured in
the same manner.

what we call human nature is actually human habit
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message