Package org.idempiere.distributed
Interface ITopic<T>
public interface ITopic<T>
Messaging topic interface
- Author:
- hengsin
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get topic namevoid
Publish message to this messaging topicvoid
subscribe
(ITopicSubscriber<T> subscriber) Subscribe to this messaging topicvoid
unsubscribe
(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
-
-