public void setClose() { currentScannerCallable.setClose(); }
s.setClose(); final RetryingRPC r = new RetryingRPC(s); pool.submit(new Callable<Void>(){
public void setClose() { currentScannerCallable.setClose(); }
s.setClose(); final RetryingRPC r = new RetryingRPC(s); pool.submit(new Callable<Void>(){
public void setClose() { currentScannerCallable.setClose(); }
public void setClose() { currentScannerCallable.setClose(); }
public void close() { if (callable != null) { callable.setClose(); try { callable.withRetries(); } catch (IOException e) { // We used to catch this error, interpret, and rethrow. However, we // have since decided that it's not nice for a scanner's close to // throw exceptions. Chances are it was just an UnknownScanner // exception due to lease time out. } finally { // we want to output the scan metrics even if an error occurred on close try { writeScanMetrics(); } catch (IOException e) { // As above, we still don't want the scanner close() method to throw. } } callable = null; } closed = true; } }
s.setClose(); final RetryingRPC r = new RetryingRPC(s); pool.submit(new Callable<Void>(){
s.setClose(); final RetryingRPC r = new RetryingRPC(s); pool.submit(new Callable<Void>(){
this.callable.setClose(); callable.withRetries(); this.callable = null;
} finally { callable.setClose(); callable.withRetries();