Example #1
0
  @Override
  public boolean onExecute() {

    _sendCache.swap();

    FSms element = null;
    while ((element = _sendCache.poll()) != null) {
      doWork(element);
    }
    return super.onExecute();
  }
Example #2
0
 public void send(FSms sms) {
   _sendCache.offer(sms);
 }