public synchronized boolean flush ( ) { if ( ! validState ) { throw new InvalidStateException ( ) ; } try { flushBuffer ( ) ; return true ; } catch ( Exception e ) { log . error ( "Exception in flush()" , e ) ; } return false ; }
Flush buffer to file