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