/** * {@inheritDoc} */ @Override public void close( Exception cause ) throws IOException { if ( LOG_CURSOR.isDebugEnabled() ) { LOG_CURSOR.debug( I18n.msg( I18n.MSG_04171_CLOSING_SEARCH_CURSOR, this ) ); } if ( done ) { super.close(); return; } if ( !future.isCancelled() ) { future.cancel( true ); } if ( cause != null ) { super.close( cause ); } else { super.close(); } }
/** * {@inheritDoc} */ @Override public void close( Exception cause ) throws IOException { if ( LOG_CURSOR.isDebugEnabled() ) { LOG_CURSOR.debug( I18n.msg( I18n.MSG_04171_CLOSING_SEARCH_CURSOR, this ) ); } if ( done ) { super.close(); return; } if ( !future.isCancelled() ) { future.cancel( true ); } if ( cause != null ) { super.close( cause ); } else { super.close(); } }
/** * {@inheritDoc} */ @Override public void close( Exception cause ) throws IOException { if ( LOG_CURSOR.isDebugEnabled() ) { LOG_CURSOR.debug( I18n.msg( I18n.MSG_04171_CLOSING_SEARCH_CURSOR, this ) ); } if ( done ) { super.close(); return; } if ( !future.isCancelled() ) { future.cancel( true ); } if ( cause != null ) { super.close( cause ); } else { super.close(); } }
@Override public void close( Exception cause ) throws Exception { if( done ) { super.close(); return; } if ( !future.isCancelled() ) { future.cancel( true ); } if ( cause != null ) { super.close( cause ); } else { super.close(); } }