public final class AepBusManager extends UtlListElement implements IEventHandler
The AEP bus binding manager class. An instance of this class is created for
each bus configured for an AEP application. This class is responsible for
- Opening the bus. It is also responsible for including retrying the open
in case of open failure and scheduling reopens when bindings fail.
- Dispatching events to the application indicating when channels change
state from offline to online and vice versa
- Handling and routing of events from the binding to the application.
Modifier and Type | Class and Description |
---|---|
static class |
AepBusManager.State
Enumerates the different states the bus handler can be in
|
Modifier and Type | Field and Description |
---|---|
static String |
PROP_USER_NAME
Property which can be set in the bus manager properties to override the user name
with which the bus is created.
|
count, head, next, prev
Modifier and Type | Method and Description |
---|---|
MessageBusBinding |
getBusBinding()
Get the message bus binding managed by an AEP bus manager.
|
MessageBusDescriptor |
getBusDescriptor()
Get the descriptor of the message bus binding managed by an AEP bus manager.
|
MessageChannel |
getChannel(String channelName)
Get the message channel managed by an AEP bus manager.
|
AepBusManagerStats |
getStats()
Get an AEP bus manager's statistics object.
|
boolean |
isInternal()
Tests if this is an internal bus binding.
|
void |
onEvent(Event event)
Implementation of
IEventHandler.onEvent(com.neeve.event.Event) |
String |
toString()
Get a string representation of this object
|
count, insertAfter, insertBefore, isLinked, next, previous, unlink, wipe
public static final String PROP_USER_NAME
public final boolean isInternal()
An AepEngine
creates internal bus bindings
for control information. This method tests if this
bus manager is for such a bus.
public final MessageBusDescriptor getBusDescriptor()
public final AepBusManagerStats getStats()
public final MessageBusBinding getBusBinding()
The binding returned by this method can be null in case the manager is in the open process.
Note: This method is for internal use. Developers should never need to use this method. To gain access to a binding, developers should wait for the appropriate lifecycle event that notifies of binding creation/open
public final MessageChannel getChannel(String channelName)
channelName
- The name of the channel to retrieve
The channel returned by this method can be null in case the manager is in the open process.
Note: This method is for internal use. Developers should never need to use this method. To gain access to a channel, developers should wait for the appropriate lifecycle event that notifies of channel creation/open
public final void onEvent(Event event)
IEventHandler.onEvent(com.neeve.event.Event)
onEvent
in interface IEventHandler
event
- The event to be handled.Copyright © 2019 Neeve Research, LLC. All Rights Reserved.