KafkaContext
class KafkaContext extends BaseRpcContext {
constructor(args: KafkaContextArgs)
getMessage()
getPartition()
getTopic()
getConsumer()
getHeartbeat()
getProducer()
// inherited from nest/packages/microservices/BaseRpcContext
constructor(args: T)
protected args: T
getArgs(): T
getArgByIndex(index: number)
}
Constructor
Methods
getMessage() |
---|
Returns the reference to the original message. |
ParametersThere are no parameters. |
getPartition() |
---|
Returns the partition. |
ParametersThere are no parameters. |
getTopic() |
---|
Returns the name of the topic. |
ParametersThere are no parameters. |
getConsumer() |
---|
Returns the Kafka consumer reference. |
ParametersThere are no parameters. |
getHeartbeat() |
---|
Returns the Kafka heartbeat callback. |
ParametersThere are no parameters. |
getProducer() |
---|
Returns the Kafka producer reference, |
ParametersThere are no parameters. |