public void sendMessage(List<String> params) { // increment our local receive counter counter.getAndIncrement(); ServiceUtils.invokeOnConnection(conn, "receiveMessage", params.toArray()); }
/** {@inheritDoc} */ @Override public void disconnect(IConnection conn, IScope scope) { super.disconnect(conn, scope); log.info("Message counter: {}", counter.get()); // System.exit(9999); }