CompletionHandler should take the channel too

Alan Bateman Alan.Bateman at Sun.COM
Sat Apr 25 04:11:05 PDT 2009


Rémi Forax wrote:
> :
>>
>>>
>>> Else, there is no way to find the group from an async socket channel,
>>> something like:
>>> asyncSocketChannel().group().shutdown();
>>> should be useful.
>> The reason for this is that we don't want to give out a reference to 
>> the default group (because it can never be shutdown). I admit we need 
>> to re-visit this but it requires special-casing the default group so 
>> that it cannot be shutdown. I don't know if you read Alex and Yevgeny 
>> Libman's proposal on filters but that creates the requirement to get 
>> a reference to the group so that it can submit its own tasks to the 
>> group's thread pool. There is merit in this proposal and the support 
>> is in the implementation (but not the API yet, needs further thought).
> No, I'm not aware of this proposal and was not able find a link to it.
> Do you have a reference ?
Here it is:
  http://mail.openjdk.java.net/pipermail/nio-dev/2009-January/000339.html



More information about the nio-dev mailing list