List of usage examples for java.nio.channels Channel equals
public boolean equals(Object obj)
From source file:oz.hadoop.yarn.api.net.AbstractSocketHandler.java
/** * /*from ww w.j a v a 2 s. c om*/ * @param channel */ protected void closeChannel(Channel channel) { try { channel.close(); } catch (IOException e) { logger.warn("Failure closing channel", e); } if (channel.equals(this.rootChannel)) { lifeCycleLatch.countDown(); } }