@Override
  public void run() throws Exception {
    RingbufferContainer ringbuffer = getRingBufferContainer();

    if (overflowPolicy == FAIL) {
      if (ringbuffer.remainingCapacity() < items.length) {
        resultSequence = -1;
        return;
      }
    }

    resultSequence = ringbuffer.addAll(items);
  }
 @Override
 public int getAsyncBackupCount() {
   RingbufferContainer ringbuffer = getRingBufferContainer();
   return ringbuffer.getConfig().getAsyncBackupCount();
 }
 @Override
 public WaitNotifyKey getNotifiedKey() {
   RingbufferContainer ringbuffer = getRingBufferContainer();
   return ringbuffer.getRingEmptyWaitNotifyKey();
 }