Documentation ¶
Overview ¶
Package hbasepool hbase connection pool
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string Port uint16 // Maximum number of idle connections in the pool. MaxIdle int // Maximum number of connections allocated by the pool at a given time. // When zero, there is no limit on the number of connections in the pool. MaxActive int // Close connections after remaining idle for this duration. If the value // is zero, then idle connections are not closed. Applications should set // the timeout to a value less than the server's timeout. IdleTimeout time.Duration // Close connections older than this duration. If the value is zero, then // the pool does not close connections based on age. MaxConnLifetime time.Duration }
Config config
type Conn ¶
type Conn struct { Closed bool CreateTime time.Time Trans thrift.TTransport Client *hbase.THBaseServiceClient }
Conn hbase conn
Click to show internal directories.
Click to hide internal directories.