How to use channel groups from custom implementation?

Gili cowwoc at bbs.darktech.org
Wed Jul 13 07:47:02 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?
>>   
> Channel groups are only needed if you are sharing resources so if you 
> don't need this then you don't need to associate the channel with a 
> group. I recall your previous mails where you were working on a channel 
> to a serial port. Is this still the case? I will guess that a typical 
> application won't require a huge number of channels, in which supporting 
> channel groups may be overkill anyway.
> 

Yes, this is for serial ports. For the sake of argument (because I might
implement other types of channels in the future), if I did want to support
channel groups, would I publish a corresponding AsynchronousChannelGroup
implementation and specify that my channel only accepts this specific
implementation?

Thanks,
Gili

--
View this message in context: http://nio-discuss.970641.n3.nabble.com/How-to-use-channel-groups-from-custom-implementation-tp3163519p3166247.html
Sent from the nio-discuss mailing list archive at Nabble.com.


More information about the nio-discuss mailing list