public synchronized void put ( byte [ ] data ) { references . remove ( data ) ; if ( mainFilter . add ( data ) ) { for ( Integer i : SIZES ) { if ( data . length == i ) { fastBuffers . get ( i ) . add ( data ) ; return ; } } if ( data . length <= MAX_SIZE ) { return ; } byteBuffer . add ( data ) ; } }
Put bytes to cache