Issue Details (XML | Word | Printable)

Key: DIRMINA-190
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Trustin Lee
Reporter: Trustin Lee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MINA

ThreadModel interface which encapsulates ThreadPoolFilter composition.

Created: 12/Mar/06 05:24 PM   Updated: 12/Mar/06 05:45 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.9.3

Time Tracking:
Not Specified

Resolution Date: 12/Mar/06 05:38 PM


 Description  « Hide
Since ServiceRegistry has been removed from the core API, users had to add ThreadPoolFilters manually. It would be great if there's a way to configure ThreadPoolFilters more easily. My suggestion is add a ThreadModel interface. Here's an example:

acceptor.getConfig().setThreadModel( ThreadModel.MANUAL ); // Single thread mode
acceptor.getConfig().setThreadModel( new PooledThreadModel( "LDAP", 16 ) ); // One thread pool with max. 16 threads.

The default property will be: new PooledThreadModel( "AnonymousIoService", 16 ). This means you have to change your code to retain the previous thread pool composition:

* call setThreadModel( ThreadModel.MANUAL ),
* or remove your code that adds a thread pool filter.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.