public KeepAliveMessage deserialize(ReadableByteChannel in, int version, StreamSession session) throws IOException { return new KeepAliveMessage(); }
public void run() { //to avoid jamming the message queue, we only send if the last one was sent if (last == null || last.wasSent()) { logger.trace("[Stream #{}] Sending keep-alive to {}.", planId(), peer); last = new KeepAliveMessage(); try { handler.sendMessage(last); } catch (RuntimeException e) //connection handler is closed { logger.debug("[Stream #{}] Could not send keep-alive message (perhaps stream session is finished?).", planId(), e); } } else { logger.trace("[Stream #{}] Skip sending keep-alive to {} (previous was not yet sent).", planId(), peer); } } }
public void run() { //to avoid jamming the message queue, we only send if the last one was sent if (last == null || last.wasSent()) { logger.trace("[Stream #{}] Sending keep-alive to {}.", planId(), peer); last = new KeepAliveMessage(); try { handler.sendMessage(last); } catch (RuntimeException e) //connection handler is closed { logger.debug("[Stream #{}] Could not send keep-alive message (perhaps stream session is finished?).", planId(), e); } } else { logger.trace("[Stream #{}] Skip sending keep-alive to {} (previous was not yet sent).", planId(), peer); } } }
public void run() { //to avoid jamming the message queue, we only send if the last one was sent if (last == null || last.wasSent()) { logger.trace("[Stream #{}] Sending keep-alive to {}.", planId(), peer); last = new KeepAliveMessage(); try { handler.sendMessage(last); } catch (RuntimeException e) //connection handler is closed { logger.debug("[Stream #{}] Could not send keep-alive message (perhaps stream session is finished?).", planId(), e); } } else { logger.trace("[Stream #{}] Skip sending keep-alive to {} (previous was not yet sent).", planId(), peer); } } }
public KeepAliveMessage deserialize(ReadableByteChannel in, int version, StreamSession session) throws IOException { return new KeepAliveMessage(); }
public KeepAliveMessage deserialize(ReadableByteChannel in, int version, StreamSession session) throws IOException { return new KeepAliveMessage(); }