@Override
    public void run() throws IOException {
      this.shipper.shipped();
      // We're done. On way out re-add the above removed lease. The lease was temp removed for this
      // Rpc call and we are at end of the call now. Time to add it back.
      if (scanners.containsKey(scannerName)) {
        if (lease != null) {
          server.getLeaseManager().addLease(lease);
        }
      }
    }
An Rpc callback for doing shipped() call on a RegionScanner.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java