Search
Preparing search index...
The search index is not available
kafka-sagas
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
ConsumerPool
Class ConsumerPool
Hierarchy
ConsumerPool
Index
Constructors
constructor
Properties
consumer
Config
consumers
kafka
observers
ByTransaction
root
Topic
topic
Administrator
Methods
broadcast
Action
disconnect
Consumers
register
Topic
Observer
start
Transaction
stop
Transaction
stream
Actions
From
Topic
Constructors
constructor
new
Consumer
Pool
(
kafka
:
Kafka
, rootTopic
:
string
, consumerConfig
?:
Omit
<
ConsumerConfig
,
"groupId"
|
"allowAutoTopicCreation"
>
, topicAdministrator
?:
TopicAdministrator
)
:
ConsumerPool
Parameters
kafka:
Kafka
rootTopic:
string
Default value
consumerConfig:
Omit
<
ConsumerConfig
,
"groupId"
|
"allowAutoTopicCreation"
>
= {}
Optional
topicAdministrator:
TopicAdministrator
Returns
ConsumerPool
Properties
Private
consumer
Config
consumer
Config
:
Omit
<
ConsumerConfig
,
"groupId"
|
"allowAutoTopicCreation"
>
Private
consumers
consumers
:
Map
<
string
,
Consumer
>
= new Map()
Private
kafka
kafka
:
Kafka
Private
observers
ByTransaction
observers
ByTransaction
:
Map
<
string
,
Map
<
string
,
Array
<
ActionObserver
<
IAction
>
>
>
>
= new Map()
Private
root
Topic
root
Topic
:
string
Private
topic
Administrator
topic
Administrator
:
TopicAdministrator
Methods
Private
broadcast
Action
broadcast
Action
(
topic
:
string
, action
:
IAction
)
:
void
Parameters
topic:
string
action:
IAction
Returns
void
disconnect
Consumers
disconnect
Consumers
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
register
Topic
Observer
register
Topic
Observer
(
__namedParameters
:
{
observer
:
ActionObserver
<
IAction
<
DefaultPayload
>
>
;
topic
:
string
;
transactionId
:
string
}
)
:
void
Parameters
__namedParameters:
{
observer
:
ActionObserver
<
IAction
<
DefaultPayload
>
>
;
topic
:
string
;
transactionId
:
string
}
observer
:
ActionObserver
<
IAction
<
DefaultPayload
>
>
topic
:
string
transaction
Id
:
string
Returns
void
start
Transaction
start
Transaction
(
transactionId
:
string
)
:
void
Parameters
transactionId:
string
Returns
void
stop
Transaction
stop
Transaction
(
transactionId
:
string
)
:
void
Parameters
transactionId:
string
Returns
void
stream
Actions
From
Topic
stream
Actions
From
Topic
(
topic
:
string
)
:
Promise
<
void
>
Parameters
topic:
string
Returns
Promise
<
void
>
Globals
Consumer
Pool
constructor
consumer
Config
consumers
kafka
observers
ByTransaction
root
Topic
topic
Administrator
broadcast
Action
disconnect
Consumers
register
Topic
Observer
start
Transaction
stop
Transaction
stream
Actions
From
Topic
Generated using
TypeDoc