code: protected synchronized void clear(int bufferType) {
          final String methodName = "clear()";
          if (bufferType == HTODInvalidationBuffer.EXPLICIT_BUFFER) {
              this.explicitBuffer.clear();
          } else if (bufferType == HTODInvalidationBuffer.SCAN_BUFFER) {
              this.scanBuffer.clear();
          } else if (bufferType == HTODInvalidationBuffer.GC_BUFFER) {
              // todo: return GC to pool?
              for (int i = 0; i < garbageCollectorBuffer.size(); i++) {
                  EvictionTableEntry evt = (EvictionTableEntry) garbageCollectorBuffer.get(i);
                  cod.htod.evictionEntryPool.add(evt);
              }
              this.garbageCollectorBuffer.clear();
          }
          traceDebug(methodName, "cacheName=" + this.cod.cacheName + " bufferType=" + bufferType);
      }
docs: Call this method to clear the invalidation buffers.
  
  @param forEventAlreadyFired
  - true to clear invalidation buffer which is used for event already fired.
  @param forEventNotFired
  - true to clear invalidation buffer which is used for event not fired.