EventDispatcherDelegate

public interface EventDispatcherDelegate

A common interface for objects which need to dispatch events, but are unable to implement EventDispatcher.

This interface defines own contract (instead of extending MessageDispatcher to allow classes that dispatch messages other than events (by implementing MessageDispatcher), and dispatch events by implementing this interface.

See also

Inheritors

Functions

Link copied to clipboard
public boolean dispatchesEvents()
Verifies if this instance dispatches at least one event.
Link copied to clipboard
public boolean dispatchesExternalEvents()
Verifies if this instance dispatches at least one external event.
Link copied to clipboard
public abstract DispatchOutcome dispatchEvent(EventEnvelope event)
Dispatches the event and returns the outcome of dispatching.
Link copied to clipboard
public abstract ImmutableSet<EventClass> domesticEvents()
Obtains domestic event classes dispatched by this delegate.
Link copied to clipboard
public abstract ImmutableSet<EventClass> events()
Obtains all event classes dispatched by this delegate.
Link copied to clipboard
public abstract ImmutableSet<EventClass> externalEvents()
Obtains external event classes dispatched by this delegate.
Link copied to clipboard
public ImmutableSet<String> identity()
Returns immutable set with one element with the identity of the multicast dispatcher that dispatches messages to itself.