Fkafka class

Constructors

Fkafka()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

closeInstance() → void
Should be called whenever the instance of this Fkafka object is not going to be used anymore.
emit<T>(String topic, T data) → void
Emit an event to all subscribers of topic.
isListeningTo({required String topic}) bool
Check if there is at least one active subscription to the topic in this instance of Fkafka.
listen<T>(String topic, {required OnTopicCallBack<T> onTopic}) → void
Add a subscription to the topic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseListeningTo({required String topic}) → void
Pause all the subscriptions from this instance of Fkafka to the topic.
resumeListeningTo({required String topic}) → void
Resume all the subscriptions from this instance of Fkafka to the topic.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

closeAll() → void
Should be called whenever Fkafka itself is not going to be used anymore.