Package akka.actor

Examples of akka.actor.Props


        historicalEvent.creationDate = new Date();
        historicalEvent.category = category;
        historicalEvent.message = message;

        ActorSystem actorSystem = Akka.system();
        ActorRef actor = actorSystem.actorOf(new Props(HistoricalEventActor.class));
        actor.tell(historicalEvent);
    }
View Full Code Here


    }

    public void scheduleJobs()
    {
        ActorSystem actorSystem = Akka.system();
        ActorRef feedCreationActor = actorSystem.actorOf(new Props(FeedCreationActor.class));
        actorSystem.scheduler().schedule(Duration.create(0, TimeUnit.MILLISECONDS),
                                           Duration.create(1, TimeUnit.HOURS),
                                           feedCreationActor,
                                           "generate");
    }
View Full Code Here

                    pullRequest.update();

                    NotificationEvent.afterPullRequestUpdated(sender, pullRequest, State.OPEN, State.MERGED);
                    PullRequestEvent.addStateEvent(sender, pullRequest, State.MERGED);

                    Akka.system().actorOf(new Props(RelatedPullRequestMergingActor.class)).tell(message, null);
                }
            }
        });
    }
View Full Code Here

    public void sendValidationEmail() {
        this.token = RandomStringUtils.randomNumeric(50);
        this.confirmUrl = Url.create(routes.UserApp.confirmEmail(this.id, this.token).url());
        update();
        Akka.system().actorOf(new Props(ValidationEmailSender.class)).tell(this, null);
    }
View Full Code Here

        NotificationEvent notiEvent = NotificationEvent.afterNewPullRequest(pullRequest);
        PullRequestEvent.addFromNotificationEvent(notiEvent, pullRequest);

        PullRequestEventMessage message = new PullRequestEventMessage(
                UserApp.currentUser(), request(), pullRequest);
        Akka.system().actorOf(new Props(PullRequestMergingActor.class)).tell(message, null);

        return redirect(pullRequestCall);
    }
View Full Code Here

        Call call = routes.PullRequestApp.pullRequest(userName, projectName, pullRequestNumber);
        addNotification(pullRequest, beforeState, State.OPEN);

        PullRequestEventMessage message = new PullRequestEventMessage(
                UserApp.currentUser(), request(), pullRequest);
        Akka.system().actorOf(new Props(PullRequestMergingActor.class)).tell(message, null);

        return redirect(call);
    }
View Full Code Here

    }

    @Override
    public void onPostReceive(ReceivePack receivePack, Collection<ReceiveCommand> commands) {
        PostReceiveMessage message = new PostReceiveMessage(commands, project, user);
        Akka.system().actorOf(new Props(IssueReferredFromCommitEventActor.class)).tell(message, null);
    }
View Full Code Here

    }

    @Override
    public void onPostReceive(ReceivePack receivePack, Collection<ReceiveCommand> commands) {
        PostReceiveMessage message = new PostReceiveMessage(commands, project, user);
        Akka.system().actorOf(new Props(CommitsNotificationActor.class)).tell(message, null);
    }
View Full Code Here

    @Override
    public void onPostReceive(ReceivePack receivePack, Collection<ReceiveCommand> commands) {
        Set<String> branches = ReceiveCommandUtil.getUpdatedBranches(commands);
        for (String branch : branches) {
            PullRequestEventMessage message = new PullRequestEventMessage(user, request, project, branch);
            Akka.system().actorOf(new Props(RelatedPullRequestMergingActor.class)).tell(message, null);
        }

        Set<String> deletedBranches = ReceiveCommandUtil.getDeletedBranches(commands);
        for (String branch : deletedBranches) {
            List<PullRequest> pullRequests = PullRequest.findRelatedPullRequests(project, branch);
View Full Code Here

import com.typesafe.config.ConfigFactory;

public class BettingProcessorApplication {
    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("BettingProcessorActorSystem", ConfigFactory.load());
        ActorRef bettingProcessor = system.actorOf(new Props(BettingProcessor.class), "bettingProcessor");
    }
View Full Code Here

TOP

Related Classes of akka.actor.Props

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.