Package akka.actor

Examples of akka.actor.ActorPath


    protected final void addActorPathTagsTo(final ActorPath actorPath, final List<String> tags) {
        // TODO: Improve detection of routed actors. This only detects "root" unnamed actors
        String lastPathElement = actorPath.elements().last();
        if (lastPathElement.startsWith("$")) {
            // this is routed actor.
            final ActorPath parent = actorPath.parent();
            if (isUserRoot(parent)) {
                // the parent is akka://xxx/user
                tags.add(actorPathToString(actorPath));
            } else {
                // the parent is some other actor, akka://xxx/user/foo
View Full Code Here


     * @param actorCell the ActorCell that will perform some operation later
     * @return the tags
     */
    final String[] getTags(final ActorCell actorCell) {
        final List<String> tags = new ArrayList<String>(3);
        final ActorPath actorPath = actorCell.self().path();

        addActorPathTagsTo(actorPath, tags);
        addSystemTagsTo(actorPath, tags);
        tags.add(String.format("akka.dispatcher:%s", actorCell.dispatcher().id()));

View Full Code Here

TOP

Related Classes of akka.actor.ActorPath

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.