public class DeadEvent
extends java.lang.Object
Registering a DeadEvent subscriber is useful for debugging or logging, as it can detect misconfigurations in a system's event distribution.
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
event |
private java.lang.Object |
source |
| Constructor and Description |
|---|
DeadEvent(java.lang.Object source,
java.lang.Object event)
Creates a new DeadEvent.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getEvent()
Returns the wrapped, 'dead' event, which the system was unable to deliver to any registered
subscriber.
|
java.lang.Object |
getSource()
Returns the object that originated this event (not the object that originated the
wrapped event).
|
java.lang.String |
toString() |
private final java.lang.Object source
private final java.lang.Object event
public DeadEvent(java.lang.Object source,
java.lang.Object event)
source - object broadcasting the DeadEvent (generally the EventBus).event - the event that could not be delivered.public java.lang.Object getSource()
EventBus.public java.lang.Object getEvent()
public java.lang.String toString()
toString in class java.lang.Object