public void unlockFlushing(){
  flushLock.unlock();
}

public void unlockFlushing ( ) { flushLock . unlock ( ) ; }
unlock the flushing mechanism to make a buffer be able to be flushed by other thread . note that the thread unlocking this mechanism must be the same thread as the one locking .
