@Service public class EventBusProvider extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EventBusProvider.Priority |
| Constructor and Description |
|---|
EventBusProvider(CallchainSubscriberCacheService callchainSubscriberCacheService) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.eventbus.EventBus |
getBus(EventBusProvider.Priority priority)
Get Bus of priority given.
|
com.google.common.eventbus.EventBus |
getBus(String priority)
Get Bus of String priority given.
|
void |
post(org.qubership.automation.itf.core.model.event.Event event) |
void |
register(Object subscriber) |
void |
register(Object subscriber,
EventBusProvider.Priority priority)
Register subscriber in High or Normal Priority Bus, and in the cache.
|
void |
unregister(Object subscriber)
Unregister subscriber from Buses and from cache.
|
void |
unregisterNormal(Object subscriber)
Unregister subscriber from Normal Priority Bus and from cache.
|
@Autowired public EventBusProvider(CallchainSubscriberCacheService callchainSubscriberCacheService)
public void post(org.qubership.automation.itf.core.model.event.Event event)
public void register(Object subscriber)
public void register(Object subscriber, EventBusProvider.Priority priority)
public void unregister(Object subscriber)
public void unregisterNormal(Object subscriber)
public com.google.common.eventbus.EventBus getBus(String priority)
public com.google.common.eventbus.EventBus getBus(EventBusProvider.Priority priority)
Copyright © 2025. All rights reserved.