@Override public void sendText(String text, SendHandler handler) { checkNotNull(text, "text"); checkNotNull(handler, "handler"); clusterContext.sendText(sessionId, text, handler); }
@Override public void sendText(String text, SendHandler handler) { checkNotNull(text, "text"); checkNotNull(handler, "handler"); clusterContext.sendText(sessionId, text, handler); }
@Override public void sendText(String text, SendHandler handler) { checkNotNull(text, "text"); checkNotNull(handler, "handler"); session.restartIdleTimeoutExecutor(); sendAsync(text, handler, AsyncMessageType.TEXT); }
@Override public void sendObject(Object data, SendHandler handler) { checkNotNull(data, "data"); checkNotNull(handler, "handler"); session.restartIdleTimeoutExecutor(); sendAsync(data, handler, AsyncMessageType.OBJECT); }
@Override public Future<Void> sendText(String text) { checkNotNull(text, "text"); return clusterContext.sendText(sessionId, text); }
@Override public void sendBinary(ByteBuffer data, SendHandler handler) { checkNotNull(data, "data"); checkNotNull(handler, "handler"); session.restartIdleTimeoutExecutor(); sendAsync(data, handler, AsyncMessageType.BINARY); }
@Override public void sendBinary(ByteBuffer data, SendHandler handler) { checkNotNull(data, "data"); checkNotNull(handler, "handler"); clusterContext.sendBinary(sessionId, Utils.getRemainingArray(data), handler); }
@Override public Future<Void> sendObject(Object data) { checkNotNull(data, "data"); session.restartIdleTimeoutExecutor(); return sendAsync(data, AsyncMessageType.OBJECT); }
@Override public Future<Void> sendBinary(ByteBuffer data) { checkNotNull(data, "data"); session.restartIdleTimeoutExecutor(); return sendAsync(data, AsyncMessageType.BINARY); }
@Override public void sendText(String partialMessage, boolean isLast) throws IOException { checkNotNull(partialMessage, "partialMessage"); final Future<?> future = clusterContext.sendText(sessionId, partialMessage, isLast); processFuture(future); }
@Override public Future<Void> sendBinary(ByteBuffer data) { checkNotNull(data, "data"); return clusterContext.sendBinary(sessionId, Utils.getRemainingArray(data)); }
@Override public Future<Void> sendText(String text) { checkNotNull(text, "text"); session.restartIdleTimeoutExecutor(); return sendAsync(text, AsyncMessageType.TEXT); }
@Override public Future<Void> sendBinary(ByteBuffer data) { checkNotNull(data, "data"); session.restartIdleTimeoutExecutor(); return sendAsync(data, AsyncMessageType.BINARY); }
@Override public void sendText(String partialMessage, boolean isLast) throws IOException { checkNotNull(partialMessage, "partialMessage"); final Future<?> future = clusterContext.sendText(sessionId, partialMessage, isLast); processFuture(future); }
@Override public void sendBinary(ByteBuffer data) throws IOException { checkNotNull(data, "data"); final Future<?> future = clusterContext.sendBinary(sessionId, Utils.getRemainingArray(data)); processFuture(future); }
@Override public void sendBinary(ByteBuffer partialByte, boolean isLast) throws IOException { checkNotNull(partialByte, "partialByte"); final Future<?> future = clusterContext.sendBinary(sessionId, Utils.getRemainingArray(partialByte), isLast); processFuture(future); }
@Override public void sendText(String partialMessage, boolean isLast) throws IOException { checkNotNull(partialMessage, "partialMessage"); session.getDebugContext().appendLogMessage(LOGGER, Level.FINEST, DebugContext.Type.MESSAGE_OUT, "Sending partial text message: ", partialMessage); final Future<?> future = webSocket.sendText(partialMessage, isLast); try { processFuture(future); } finally { session.restartIdleTimeoutExecutor(); } }
@Override public void sendBinary(ByteBuffer partialByte, boolean isLast) throws IOException { checkNotNull(partialByte, "partialByte"); session.getDebugContext().appendLogMessage(LOGGER, Level.FINEST, DebugContext.Type.MESSAGE_OUT, "Sending partial binary message"); final Future<?> future = webSocket.sendBinary(Utils.getRemainingArray(partialByte), isLast); try { processFuture(future); } finally { session.restartIdleTimeoutExecutor(); } }
@Override public void sendBinary(ByteBuffer data) throws IOException { checkNotNull(data, "data"); session.getDebugContext() .appendLogMessage(LOGGER, Level.FINEST, DebugContext.Type.MESSAGE_OUT, "Sending binary message"); final Future<?> future = webSocket.sendBinary(Utils.getRemainingArray(data)); try { processFuture(future); } finally { session.restartIdleTimeoutExecutor(); } }
@Override public void sendBinary(ByteBuffer data) throws IOException { checkNotNull(data, "data"); session.getDebugContext() .appendLogMessage(LOGGER, Level.FINEST, DebugContext.Type.MESSAGE_OUT, "Sending binary message"); final Future<?> future = webSocket.sendBinary(Utils.getRemainingArray(data)); try { processFuture(future); } finally { session.restartIdleTimeoutExecutor(); } }