static public void dispose ( ByteBuffer buffer ) { if ( ! ( buffer instanceof DirectBuffer ) ) return ; if ( cleanerMethod != null ) { try { cleanMethod . invoke ( cleanerMethod . invoke ( buffer ) ) ; } catch ( Throwable ignored ) { } } }
Release a direct buffer immediately rather than waiting for GC .