@Override public void close() { if (closed.compareAndSet(false, true)) { ((NetLightClient) client).close(); loopGroup.shutdownGracefully(); serverSentMessageNotifier.stop(); } }
public void removeServerSentMessageListener(ServerSentMessageListener listener) { serverSentMessageNotifier.removeListener(listener); }
public void diconnect() { ((NetLightClient) client).close(); serverSentMessageNotifier.stopLater(); }
public void addServerSentMessageListener(ServerSentMessageListener listener) { serverSentMessageNotifier.addListener(listener); }