public EventResultDisruptor waitForBlocking ( ) { SequenceBarrier barrier = ringBuffer . newBarrier ( ) ; try { long a = barrier . waitFor ( waitAtSequence ) ; if ( ringBuffer != null ) return ringBuffer . get ( a ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } finally { barrier . alert ( ) ; } return null ; }
not really block the waiting time is longer than not block .