void waitForResuming ( ) throws IOException { if ( isSuspended . get ( ) ) { try { latcher . get ( ) . await ( ) ; } catch ( InterruptedException e ) { throw new IOException ( e ) ; } } }
If component is suspended need to wait resuming and not allow execute query on closed index .