Package org.marketcetera.eventbus
Interface EventBusService
-
public interface EventBusServiceProvides event bus services.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Field Summary
Fields Modifier and Type Field Description static StringdefaultTopicdefault topicstatic StringeventCategoryprovides a common logger category
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpost(Object inEvent)Post the given event to the default topic.voidpost(Object inEvent, String... inTopics)Post the given event to the given topics.voidregister(Object inSubscriber)Register the given subscriber to appropriate events on the default topic.voidregister(Object inSubscriber, String inTopic)Register the given subscriber to appropriate events on the given topic.voidunregister(Object inSubscriber)Unregister the given subscriber from the default topic.voidunregister(Object inSubscriber, String inTopic)Unregister the given subscriber from the given topic.
-
-
-
Field Detail
-
defaultTopic
static final String defaultTopic
default topic- See Also:
- Constant Field Values
-
eventCategory
static final String eventCategory
provides a common logger category- See Also:
- Constant Field Values
-
-
Method Detail
-
register
void register(Object inSubscriber)
Register the given subscriber to appropriate events on the default topic.- Parameters:
inSubscriber- anObjectvalue
-
register
void register(Object inSubscriber, String inTopic)
Register the given subscriber to appropriate events on the given topic.- Parameters:
inSubscriber- anObjectvalueinTopic- aStringvalue
-
unregister
void unregister(Object inSubscriber)
Unregister the given subscriber from the default topic.- Parameters:
inSubscriber- anObjectvalue
-
unregister
void unregister(Object inSubscriber, String inTopic)
Unregister the given subscriber from the given topic.- Parameters:
inSubscriber- anObjectvalueinTopic- aStringvalue
-
post
void post(Object inEvent)
Post the given event to the default topic.- Parameters:
inEvent- anObjectvalue
-
-