Preparing search index...
The search index is not available
@qiwi/nestjs-enterprise-thrift
@qiwi/nestjs-enterprise-thrift
ThriftClientProvider
Class ThriftClientProvider
Hierarchy
ThriftClientProvider
Implements
IThriftClientProvider
OnModuleDestroy
Index
Constructors
constructor
Properties
config
connection
Provider
log
pools
proxies
Methods
create
Connection
get
Client
get
Connection
Params
get
Pool
get
Service
Profile
on
Module
Destroy
Constructors
constructor
new
Thrift
Client
Provider
(
log
,
connectionProvider
,
config
)
:
ThriftClientProvider
Parameters
log
:
ILogger
connectionProvider
:
IConnectionProvider
config
:
IConfig
<
any
>
Returns
ThriftClientProvider
Properties
Private
config
config
:
IConfig
<
any
>
Private
connection
Provider
connection
Provider
:
IConnectionProvider
Private
log
log
:
ILogger
pools
pools
:
Map
<
TClientConstructor
<
any
>
,
TThriftPool
<
any
>
>
Private
proxies
proxies
:
Map
<
TClientConstructor
<
any
>
,
any
>
Methods
create
Connection
create
Connection
(
serviceProfile
,
connectionOpts
?
)
:
Promise
<
Connection
>
Parameters
serviceProfile
:
string
|
IThriftServiceProfile
Optional
connectionOpts
:
{
protocol
:
any
;
transport
:
any
;
}
protocol
:
any
transport
:
any
Returns
Promise
<
Connection
>
get
Client
get
Client
<
TClient
>
(
serviceProfile
,
clientConstructor
,
thriftOpts
?
)
:
TClient
Get thrift client from pool or create new client
Type Parameters
TClient
Parameters
serviceProfile
:
string
|
IThriftServiceProfile
clientConstructor
:
TClientConstructor
<
TClient
>
thriftOpts
:
TThriftOpts
= {}
Returns
TClient
Private
get
Connection
Params
get
Connection
Params
(
serviceProfile
)
:
Promise
<
IConnectionParams
&
{
thriftServiceName
:
string
;
}
>
Parameters
serviceProfile
:
string
|
IThriftServiceProfile
Returns
Promise
<
IConnectionParams
&
{
thriftServiceName
:
string
;
}
>
get
Pool
get
Pool
<
TClient
>
(
serviceProfile
,
clientConstructor
,
opts
)
:
TThriftPool
<
TClient
>
Type Parameters
TClient
Parameters
serviceProfile
:
string
|
IThriftServiceProfile
clientConstructor
:
TClientConstructor
<
TClient
>
opts
:
TThriftOpts
Returns
TThriftPool
<
TClient
>
get
Service
Profile
get
Service
Profile
(
ref
)
:
IThriftServiceProfile
Parameters
ref
:
string
|
IThriftServiceProfile
Returns
IThriftServiceProfile
on
Module
Destroy
on
Module
Destroy
(
)
:
Promise
<
void
[]
>
Returns
Promise
<
void
[]
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
config
connection
Provider
log
pools
proxies
create
Connection
get
Client
get
Connection
Params
get
Pool
get
Service
Profile
on
Module
Destroy
@qiwi/nestjs-
enterprise-
thrift
Thrift
Client
Provider
Thrift
Module
Class
Type
IConnection
Provider
IConsul
Service
IThrift
Client
Provider
IThrift
Client
Service
IThrift
Connection
Opts
IThrift
Service
Profile
Extender
IConnection
Params
IService
Declaration
TPool
Opts
TThrift
Opts
TThrift
Pool
TThrift
Pool
Resource
INJECT_
THRIFT_
SERVICE
Thrift
Client
Service
Inject
Thrift
Service
Thrift
Server
thrift
Service
Factory
Get thrift client from pool or create new client