Example usage for java.nio.channels Channel equals

List of usage examples for java.nio.channels Channel equals

Introduction

In this page you can find the example usage for java.nio.channels Channel equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

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();
    }
}