public long append ( Entry entry ) { Assert . notNull ( entry , "entry" ) ; assertIsOpen ( ) ; // Append the entry to the appropriate segment. long index = currentSegment ( ) . append ( entry ) ; entryBuffer . append ( entry ) ; return index ; }
Appends an entry to the log .