Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow for explicit closing of connections

  • Loading branch information...
commit 47bccce672acfc2822a978c065c0cbdc31ea887f 1 parent c6b51ac
@copiousfreetime authored
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.
Something went wrong with that request. Please try again.