@Override
    public boolean matches(HopDirective dir) {
        if (!(dir instanceof TcpDirective)) {
            return false;
        }
        TcpDirective rhs = (TcpDirective)dir;
        return host.equals(rhs.host) && port == rhs.port && session.equals(rhs.session);
    }
Constructs a new directive to route directly to a tcp address.

@param host    The host name to connect to.
@param port    The port to connect to.
@param session The session to route to.
messagebus/src/main/java/com/yahoo/messagebus/routing/TcpDirective.java