public void sync() throws IOException {
    synchronized (lockObject) {
      if (segChannel != null) {
        lastAccessTime = System.nanoTime();
        flushBuffer();

        segChannel.force(false);
      }
    }
  }
public void sync() throws IOException {
    synchronized (lockObject) {
      if (segChannel != null) {
        lastAccessTime = System.nanoTime();
        flushBuffer();

        segChannel.force(false);
      }
    }
  }
public void sync ( ) throws IOException { synchronized ( lockObject ) { if ( segChannel != null ) { lastAccessTime = System . nanoTime ( ) ; flushBuffer ( ) ; segChannel . force ( false ) ; } } }
Writes cache content to the file and performs <code>fsync</code>
Writes cache content to the file and performs <code > fsync< / code >