Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow for explicit closing of connections

  • Loading branch information...
commit 47bccce672acfc2822a978c065c0cbdc31ea887f 1 parent c6b51ac
Jeremy Hinegardner authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/ashbe/table.rb
5 lib/ashbe/table.rb
View
@@ -25,6 +25,11 @@ def is_auto_flush?
@htable.isAutoFlush
end
+ def close
+ @htable.close
+ ::Ashbe::Java::HConnectionManager.deleteConnection( @config, true )
+ end
+
#
# TODO: figure out how to extrac all the methods from HTableInterface and
# delegate them to @htable
Please sign in to comment.
Something went wrong with that request. Please try again.