Example #1
0
 @Override
 public void closeInboundChannel() {
   if (connectionManager.isAlive()) connectionManager.terminate();
   super.closeInboundChannel();
 }
Example #2
0
 @Override
 public void openInboundChannel() {
   if (!connectionManager.isAlive()) connectionManager.start();
   super.openInboundChannel();
 }