How to use channel groups from custom implementation?
Gili
cowwoc at bbs.darktech.org
Tue Jul 19 06:51:18 PDT 2011
Alan Bateman wrote:
>
> Gili wrote:
>> :
>> So you're saying that if I wanted to publish an AsynchronousByteChannel
>> implementation in the supported fashion, I'd have to publish a
>> corresponding
>> AsynchronousChannelGroup implementation and specify that my channel only
>> accepts this specific channel group. Is that correct?
>>
> I didn't get a chance to think about that one yet. The only issue that I
> can think of is that an AsynchronousChannelGroup is associated with an
> AsynchronousChannelProvider but in this case then I assume there isn't a
> provider. It would mean the provider method returns null, which is
> probably okay, it's just that the AsynchronousChannelGroup constructor
> does specify that it can be null.
I think you meant "does *not* specify that it can be null". Okay, so we'd
need to update the documentation there. Can you open a bug report for this?
PS: Why does AsynchronousChannelGroup even need a reference to the provider?
This sounds like an implementation detail...?
Thanks,
Gili
--
View this message in context: http://nio-discuss.970641.n3.nabble.com/How-to-use-channel-groups-from-custom-implementation-tp3163519p3182559.html
Sent from the nio-discuss mailing list archive at Nabble.com.
More information about the nio-discuss
mailing list