void function ( final long arg0 , final TimeUnit arg1 , final CheckedRunnable < E > arg2 ) { if ( closed ) { throw new IndexShardClosedException ( shardId ) ; } delayOperations ( ) ; try { doBlockOperations ( arg0 , arg1 , arg2 ) ; } finally { releaseDelayedOperations ( ) ; } }
wait for in-flight operations to finish and executes onblocked under the guarantee that no new operations are started . queuesoperations that are occurring in the meanwhile and runs them once onblocked has executed . concode_field_sep int TOTAL_PERMITS concode_elem_sep Semaphore semaphore concode_elem_sep Logger logger concode_elem_sep ShardId shardId concode_elem_sep boolean closed concode_elem_sep boolean delayed concode_elem_sep ThreadPool threadPool concode_elem_sep List<ActionListener<Releasable>> delayedOperations concode_field_sep int getActiveOperationsCount concode_elem_sep void releaseDelayedOperations concode_elem_sep void delayOperations concode_elem_sep void doBlockOperations concode_elem_sep void close concode_elem_sep void acquire concode_elem_sep Releasable acquire concode_elem_sep void asyncBlockOperations