code: public boolean sendAndDestroy(Socket socket, int flags)
      {
          boolean ret = send(socket, flags);
          if (ret) {
              destroy();
          }
          return ret;
      }
docs: Sends frame to socket if it contains data.
  Use this method to send a frame and destroy the data after.
  @param socket
  0MQ socket to send frame
  @param flags
  Valid send() method flags, defined in org.zeromq.ZMQ class
  @return
  True if success, else False