public interface EventSubscriber
EventPublisher.subscribe(EventSubscriber, Set). Subscribers will typically be stored in a
HashSet to prevent duplicate subscriptions, so classes implementing this interface should consider
whether they need to override Object.equals(Object) and Object.hashCode().
All implementations of this interface MUST be immutable or use both the default Object.equals(java.lang.Object) and
Object.hashCode() implementations, as instances will be used as keys in hash-based collections. Mutable
implementations may cause undefined behavior when used as Map keys or Set elements.
EventPublisher| Modifier and Type | Method and Description |
|---|---|
void |
processEvent(Event event)
Processes an event.
|
void processEvent(Event event)
EventPublisher.subscribe(software.amazon.jdbc.util.events.EventSubscriber, java.util.Set<java.lang.Class<? extends software.amazon.jdbc.util.events.Event>>).event - the event to process.