Ejemplo n.º 1
0
 private void onMessage(final String message) {
   try {
     userActor.send(new WebDataMessage(ref(), message));
   } catch (SuspendExecution ex) {
     throw new AssertionError(ex);
   }
 }
Ejemplo n.º 2
0
    final void service(ChannelHandlerContext ctx, FullHttpRequest req) throws SuspendExecution {
      if (context.watch()) watchToken = watch(userActor);

      this.ctx = ctx;
      this.req = req;

      if (isDone()) {
        handleDeath(getDeathCause());
        return;
      }

      userActor.send(new HttpRequestWrapper(ref(), ctx, req));
    }
Ejemplo n.º 3
0
 @Override
 public void send(T message, ActorRef to) {
   reference.send(message, to);
 }
Ejemplo n.º 4
0
 public static void send(ActorRef actor, Object m) throws SuspendExecution {
   actor.send(m);
 }