public int getNumDirectives() {
        return selector.size();
    }
Returns the number of directives contained in this hop.

@return The number of directives.
messagebus/src/main/java/com/yahoo/messagebus/routing/Hop.java