Package akka.actor

Examples of akka.actor.UntypedActorFactory


  @Override
  protected void activate(ActivationMessage message) {

    ActorRef serviceTaskInstance = this.getContext().actorOf(new Props(
        new UntypedActorFactory() {
          private static final long serialVersionUID = 1L;

          // create an instance of a (synchronous) service worker
          public UntypedActor create() {
              return new ServiceTaskInstance(getUniqueProcessId(), getUniqueFlowNodeId(),
View Full Code Here


   * @param context the context
   * @param eventDefinitionParameter the event definition parameter
   * @return the ActorRef of the EventDefinition
   */
  public static ActorRef createEventDefinitionActor(String uniqueFlowNodeId, UntypedActorContext context, final EventDefinitionParameter eventDefinitionParameter) {
    ActorRef eventDefinitionActor = context.actorOf(new Props(new UntypedActorFactory() {
      private static final long serialVersionUID = 1L;

      public UntypedActor create() {
          return new EventDefinitionFactory().getEventDefinition(eventDefinitionParameter);
        }
View Full Code Here

  }
 
  @SuppressWarnings({ "unchecked" })
  public List<Object> run(final List<Object> data, List<Object> parameters, Function<?, ?> functionToApply, final int numberOfWorkers, int numberOfSecondsTimeout) {
    final ImmutableList iData = ImmutableList.builder().addAll(data).build();
    ActorRef actorLevel1 = system.actorOf(new Props(new UntypedActorFactory() {
      private static final long serialVersionUID = 1L;
      public UntypedActor create() {
        return new ActorLevel1(iData, numberOfWorkers);
      }
    }), "ActorLevel1-" + System.currentTimeMillis());
View Full Code Here

    shutdownCommandListener = system.actorOf(new Props(ActorLevel0_SystemShutdowner.class), "shutdownCommandListener");
  }
 
  @SuppressWarnings({ "unchecked" })
  public List<Object> run(final List<Object> data, List<Object> parameters, Function<?, ?> functionToApply, final int numberOfWorkers, int numberOfSecondsTimeout) {
    ActorRef actorLevel1 = system.actorOf(new Props(new UntypedActorFactory() {
      private static final long serialVersionUID = 1L;
      public UntypedActor create() {
        return new ActorLevel1(data, numberOfWorkers);
      }
    }), "ActorLevel1-" + System.currentTimeMillis());
View Full Code Here

TOP

Related Classes of akka.actor.UntypedActorFactory

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.