Package akka.remote

Examples of akka.remote.RemoteClientError


  private ActorRef jobScheduler;

  @Override
  public void onReceive(Object message) throws Exception {
    if (message instanceof RemoteClientError) {
      RemoteClientError event = (RemoteClientError) message;
      log.info("Received remote client error event from address "
          + event.getRemoteAddress());
      jobScheduler.tell(new StopWorker(event.getRemoteAddress()
          .toString()));
      log.info("Cause of the event was {}", event.getCause());
//    } else if (message instanceof RemoteClientWriteFailed) {
//      RemoteClientWriteFailed event = (RemoteClientWriteFailed) message;
//      log.info("Received remote client write fail event from address "
//          + event.getRemoteAddress());
//      jobScheduler.tell(new StopWorker(event.getRemoteAddress()
View Full Code Here

TOP

Related Classes of akka.remote.RemoteClientError

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.