Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
M
N
O
P
R
S
U
A
anyChannel()
- Static method in class com.stuffthathappens.classbus.
MatcherMaker
Create a matcher that accepts events sent to any channel.
B
BasicEventService
- Class in
com.stuffthathappens.classbus
The default implementation of
EventService
.
BasicEventService(DeliveryStrategy)
- Constructor for class com.stuffthathappens.classbus.
BasicEventService
Construct a new instance.
C
com.stuffthathappens.classbus
- package com.stuffthathappens.classbus
ClassBus is a publish/subscribe event delivery framework, primarily geared towards client GUI applications.
D
deliveryComplete(T)
- Method in interface com.stuffthathappens.classbus.
DeliveryCompleteCallback
This is called after all matching subscribers are notified.
DeliveryCompleteCallback
<
T
> - Interface in
com.stuffthathappens.classbus
This callback is notified when event delivery for a particular event completes.
DeliveryStrategy
- Interface in
com.stuffthathappens.classbus
Delivers events to recipients, either in the caller thread or by spawning new threads.
E
EdtDeliveryStrategy
- Class in
com.stuffthathappens.classbus
An event delivery strategy that ensures
EventSubscriber
s are only notified on the Swing Event Dispatch Thread (EDT).
EdtDeliveryStrategy()
- Constructor for class com.stuffthathappens.classbus.
EdtDeliveryStrategy
EventService
- Interface in
com.stuffthathappens.classbus
A publish/subscribe mechanism where multiple publishers can broadcast events to multiple subscribers without any direct connections between publishers and subscribers.
EventSubscriber
<
T
> - Interface in
com.stuffthathappens.classbus
To receive events, you must implement this interface.
exactChannel(String)
- Static method in class com.stuffthathappens.classbus.
MatcherMaker
Create an exact matcher.
exactType(Class<T>)
- Static method in class com.stuffthathappens.classbus.
MatcherMaker
Create a matcher that matches when the eventClass is an exact match.
M
Matcher
<
T
> - Interface in
com.stuffthathappens.classbus
API for matching things.
MatcherMaker
- Class in
com.stuffthathappens.classbus
Static factory methods for creating
Matcher
objects.
matches(T)
- Method in interface com.stuffthathappens.classbus.
Matcher
N
nullChannel()
- Static method in class com.stuffthathappens.classbus.
MatcherMaker
Create the null channel matcher.
O
onEvent(T)
- Method in interface com.stuffthathappens.classbus.
EventSubscriber
Invoked if the event passes the channel and event matchers.
P
publish(T)
- Method in class com.stuffthathappens.classbus.
BasicEventService
publish(String, T)
- Method in class com.stuffthathappens.classbus.
BasicEventService
publish(T, DeliveryCompleteCallback<T>)
- Method in class com.stuffthathappens.classbus.
BasicEventService
publish(String, T, DeliveryCompleteCallback<T>)
- Method in class com.stuffthathappens.classbus.
BasicEventService
publish(T)
- Method in interface com.stuffthathappens.classbus.
EventService
Publish an event to the null channel.
publish(String, T)
- Method in interface com.stuffthathappens.classbus.
EventService
Publish an event to a particular channel.
publish(T, DeliveryCompleteCallback<T>)
- Method in interface com.stuffthathappens.classbus.
EventService
Publish an event to the null channel, notifying a callback after delivery completes.
publish(String, T, DeliveryCompleteCallback<T>)
- Method in interface com.stuffthathappens.classbus.
EventService
Publish an event to a particular channel, notifying a callback after delivery completes.
publishTo(Iterable<EventSubscriber<T>>, T, DeliveryCompleteCallback<T>)
- Method in interface com.stuffthathappens.classbus.
DeliveryStrategy
Iterate over the given collection of subscribers, calling
EventSubscriber.onEvent(Object)
on each subscriber.
publishTo(Iterable<EventSubscriber<T>>, T, DeliveryCompleteCallback<T>)
- Method in class com.stuffthathappens.classbus.
EdtDeliveryStrategy
publishTo(Iterable<EventSubscriber<T>>, T, DeliveryCompleteCallback<T>)
- Method in class com.stuffthathappens.classbus.
SyncDeliveryStrategy
R
regexChannel(String)
- Static method in class com.stuffthathappens.classbus.
MatcherMaker
Create a matcher that accepts events sent to channels matching the given regular expression.
S
subscribe(Matcher<String>, Matcher<Object>, EventSubscriber<T>)
- Method in class com.stuffthathappens.classbus.
BasicEventService
subscribe(Matcher<String>, Matcher<Object>, EventSubscriber<T>)
- Method in interface com.stuffthathappens.classbus.
EventService
Register a subscriber that will be notified if the sent event matches both the channelMatcher and the eventMatcher.
subtype(Class<T>)
- Static method in class com.stuffthathappens.classbus.
MatcherMaker
If you pass "Base" as the matchOnType, then events of type "Base" as well as "Derived" will be valid matches.
SyncDeliveryStrategy
- Class in
com.stuffthathappens.classbus
Synchronous event delivery.
SyncDeliveryStrategy()
- Constructor for class com.stuffthathappens.classbus.
SyncDeliveryStrategy
U
unsubscribe(Matcher<String>, Matcher<Object>, EventSubscriber<T>)
- Method in class com.stuffthathappens.classbus.
BasicEventService
unsubscribe(EventSubscriber<T>)
- Method in class com.stuffthathappens.classbus.
BasicEventService
unsubscribe(Matcher<String>, Matcher<Object>, EventSubscriber<T>)
- Method in interface com.stuffthathappens.classbus.
EventService
Remove a subscriber provided we find a matching channelMatcher and eventMatcher.
unsubscribe(EventSubscriber<T>)
- Method in interface com.stuffthathappens.classbus.
EventService
Completely remove the given subscriber from all channel and event matchers.
A
B
C
D
E
M
N
O
P
R
S
U
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes