public synchronized int size() {
        return targets.size();
    }
Returns the number of targets currently contained in this.

@return The size of the internal map.
messagebus/src/main/java/com/yahoo/messagebus/network/rpc/RPCTargetPool.java