java.nio.channels.MembershipKey API

David M. Lloyd david.lloyd at redhat.com
Wed Oct 22 13:11:28 PDT 2008


On 10/22/2008 02:24 PM, Alan Bateman wrote:
> Rémi Forax wrote:
>> :
>> For the early adopters, sorry to find that inconsistencies so late.
>>
>> I've found other methods that should be renamed too : 
>> NetworkChannel.get/setOption(),
>> NetworkChannel.getLocalAddress(), DatagramChannel.getConnectedAddress(),
>> SocketChannel.getConnectedAddress().
> Right, these are also new. The pairing here is bind/getLocalAddress, 
> connect/getRemoteAddress, and setOption/getOption. In isolation, these 
> method names are fine, not unexpected, etc. but point taken that we must 
> try to keep the naming in the package consistent. I'll try to re-examine 
> these methods soon. The naming problem is harder in the file package.

It's also worth noting that getLocal/RemoteAddress are consistent with 
what's in java.net.Socket today.

- DML



More information about the nio-dev mailing list