Package org.idempiere.distributed
Interface ITopic<T>
public interface ITopic<T>
Messaging topic interface
- Author:
- hengsin
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Get topic namevoidPublish message to this messaging topicvoidsubscribe(ITopicSubscriber<T> subscriber) Subscribe to this messaging topicvoidunsubscribe(ITopicSubscriber<T> subscriber) Unsubscribe subscriber from this messaging topic
-
Method Details
-
getName
String getName()Get topic name- Returns:
- topic name
-
subscribe
Subscribe to this messaging topic- Parameters:
subscriber-
-
unsubscribe
Unsubscribe subscriber from this messaging topic- Parameters:
subscriber-
-
publish
Publish message to this messaging topic- Parameters:
message-
-