Beispiel #1
0
  @Override
  public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
    try {
      checkIfMessage(msg);
      syncProcessor.onInboundMessage((Message) msg);

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
Beispiel #2
0
 @Override
 public void channelActive(final ChannelHandlerContext ctx) {
   System.out.println("CHANNEL ACTIVE SYNC");
   syncProcessor.onLayerActive(new MessageExecutorImpl(ctx));
 }