Registering a DeadEvent subscriber is useful for debugging or logging, as it can detect misconfigurations in a system's event distribution.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the 'dead' event that could not be delivered.Returns the wrapped, 'dead' event, which the system was unable to deliver to any registered subscriber. |
| public Object | Returns: the source of this event.Returns the object that originated this event (not the object that originated the wrapped event). |
| public String |
| event | back to summary |
|---|---|
| private final Object event | |
| source | back to summary |
|---|---|
| private final Object source | |
| DeadEvent | back to summary |
|---|---|
| public DeadEvent(Object source, Object event) Creates a new DeadEvent. | |
| getEvent | back to summary |
|---|---|
| public Object getEvent() Returns the wrapped, 'dead' event, which the system was unable to deliver to any registered subscriber.
| |
| getSource | back to summary |
|---|---|
| public Object getSource() Returns the object that originated this event (not the object that originated the
wrapped event). This is generally an
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |