public long write ( short type , byte [ ] [ ] data ) throws InterruptedException , IOException { try { return super . put ( type , data , true ) ; } catch ( InterruptedException e ) { throw e ; } catch ( IOException e ) { throw e ; } catch ( Throwable e ) { throw new DelegatedRuntimeException ( e ) ; } }
Sub - classes call this method to write log records with a specific record type .