public class EventRouter extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
enableAutomaticPassThru()
If we do not enable AutomaticPassThru for Events then for
each type of Control & Notification we have to create and
register Processor, like below
EventRouter.getInstance().registerPassThruProcessor(EventType.Control, "TestMessage");
EventRouter.getInstance().registerPassThruProcessor(EventType.Notification, "com.pianglesdemo.services.news.NewsEvent");
OR
process it specifically, like below
EventRouter.getInstance().registerControlProcessor("TestMessage", new PassThruControlEventProcessor());
EventRouter.getInstance().registerNotificationProcessor(new PassThruNotificationEventProcessor("com.pianglesdemo.services.news.NewsEvent"));
|
static EventRouter |
getInstance() |
EventProcessor |
getProcessor(org.piangles.backbone.services.msg.Event event) |
boolean |
isAutomaticPassThru() |
void |
registerControlProcessor(String contolPayloadType,
EventProcessor eventProcessor) |
void |
registerNotificationProcessor(EventProcessor eventProcessor) |
void |
registerPassThruProcessor(String eventType,
String payloadType) |
public static EventRouter getInstance()
public EventProcessor getProcessor(org.piangles.backbone.services.msg.Event event) throws Exception
Exceptionpublic void registerControlProcessor(String contolPayloadType, EventProcessor eventProcessor)
public void registerNotificationProcessor(EventProcessor eventProcessor)
public void registerPassThruProcessor(String eventType, String payloadType)
public void enableAutomaticPassThru()
public boolean isAutomaticPassThru()
Copyright © 2022. All rights reserved.