@Beta public class DeadEvent extends java.lang.Object
Subscribing a DeadEvent handler is useful for debugging or logging, as it can detect misconfigurations in a system's event distribution.
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 handler.
|
java.lang.Object |
getSource()
Returns the object that originated this event (not the object that
originated the wrapped 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()