Browse files

Allow for explicit closing of connections

  • Loading branch information...
1 parent c6b51ac commit 47bccce672acfc2822a978c065c0cbdc31ea887f @copiousfreetime committed Jun 30, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/ashbe/table.rb
View
5 lib/ashbe/table.rb
@@ -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

0 comments on commit 47bccce

Please sign in to comment.