示例#1
0
 @Override
 public void close() {
   if (closed.compareAndSet(false, true)) {
     ((NetLightClient) client).close();
     loopGroup.shutdownGracefully();
     serverSentMessageNotifier.stop();
   }
 }
示例#2
0
 public void removeServerSentMessageListener(ServerSentMessageListener listener) {
   serverSentMessageNotifier.removeListener(listener);
 }
示例#3
0
 public void diconnect() {
   ((NetLightClient) client).close();
   serverSentMessageNotifier.stopLater();
 }
示例#4
0
 public void addServerSentMessageListener(ServerSentMessageListener listener) {
   serverSentMessageNotifier.addListener(listener);
 }