Package de.bamberg.ha.api.remote

Examples of de.bamberg.ha.api.remote.ResponseWriter


  @Override
  public void messageReceived(ChannelHandlerContext ctx, MessageEvent nettyMessageEvent)
      throws Exception {
    log.debug(nettyMessageEvent.getMessage());
    ResponseWriter responseWriter=new NettyResponseWriter(ctx.getChannel());
    de.bamberg.ha.api.remote.MessageEvent event=new de.bamberg.ha.api.remote.MessageEvent(nettyMessageEvent.getMessage(),responseWriter);
    delegateToConnector.messageReceived(event);
   
  }
View Full Code Here


 
  protected void handleAsynchronResponseState(PendingResponse response) {
    if (response!=null) {
      if (response.isDone()) {
        try {
          ResponseWriter responseWriter=response.getMessageEvent().getResponseWriter();
          DistributedExecutionResult executionResult=response.getDistributedExecutionResult();
          Object returnValue=executionResult.getReturnValue();
          if (returnValue!=null) {
            responseWriter.write(returnValue);
          }
        } catch (InterruptedException e) {
          log.error(e.getMessage(),e);
        } catch (ExecutionException e) {
          log.error(e.getMessage(),e);
View Full Code Here

TOP

Related Classes of de.bamberg.ha.api.remote.ResponseWriter

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.