code: public void stop(boolean completeClear) {
          final String methodName = "stop()";
          if (this.invalidationBuffer.isBackgroundInvalidationInProgress()) {
              this.invalidationBuffer.setLoopOnce(true);
              if (this.invalidationBuffer.isCleanupPending()) {
                  this.invalidationBuffer.resetCleanupPending();
              }
              this.cod.waitForCleanupComplete();
              this.invalidationBuffer.setLoopOnce(false);
          }
  
          if (completeClear) {
              this.invalidationBuffer.clear(HTODInvalidationBuffer.EXPLICIT_BUFFER);
              this.invalidationBuffer.clear(HTODInvalidationBuffer.SCAN_BUFFER);
              this.invalidationBuffer.clear(HTODInvalidationBuffer.GC_BUFFER);
          } else {
              this.invalidationBuffer.clear(HTODInvalidationBuffer.SCAN_BUFFER);
              this.invalidationBuffer.clear(HTODInvalidationBuffer.GC_BUFFER);
              this.cod.valueSet = this.invalidationBuffer.getAndRemoveFromExplicitBuffer();
              if (this.cod.valueSet != null && this.cod.valueSet.size() > 0) {
                  if (tc.isDebugEnabled())
                      Tr.debug(tc, methodName, "cacheName=" + this.cacheName + " offload explicit buffer size=" + this.cod.valueSet.size());
              }
          }
      }
docs: ***********************************************************************
  stop()
  Stop LPBT ASAP by clearing invalidation buffers. If "completeClear" is false,
  create invalidation file and offload the invalidation buffer (EventAlreadyFired)
  to the disk.
  ***********************************************************************