public final class BusLifecycleEvent extends Object
ClientMessageBus
lifecycle. Provides access to contextual information
at the time of the event.BusLifecycleListener
Constructor and Description |
---|
BusLifecycleEvent(ClientMessageBus bus,
TransportError reason)
Creates a new lifecycle event with the given details.
|
Modifier and Type | Method and Description |
---|---|
ClientMessageBus |
getBus()
Returns the bus that this lifecycle event pertains to.
|
TransportError |
getReason()
The transport error that caused this lifecycle transition.
|
public BusLifecycleEvent(ClientMessageBus bus, TransportError reason)
bus
- The bus that this lifecycle event pertains to. Must not be null.reason
- The error that caused this lifecycle transition. Null is
permitted, and means the transition was not caused by a transport
error.public ClientMessageBus getBus()
public TransportError getReason()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.