public abstract class IPCBasicChannel extends Object implements IPCChannel
COMMAND_EVENT_TYPE, SENDER_UUID_KEY| Constructor and Description |
|---|
IPCBasicChannel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(IPCHandler handler) |
String |
getChannelId() |
List<IPCHandler> |
getHandlers() |
com.fasterxml.jackson.databind.ObjectMapper |
getMapper() |
com.bluejeans.utils.EnumCounter<IPCEventType> |
getMessageCounts() |
void |
handleMessage(String message)
Handle through all handlers.
|
boolean |
isSendToMyself() |
void |
produceMessage(com.fasterxml.jackson.databind.JsonNode ipcEvent) |
void |
sendCommand(String command,
String application,
String entity,
Map<String,Object> params) |
void |
sendCommand(String command,
String application,
String entity,
Object... params) |
void |
setHandlers(List<IPCHandler> handlers) |
void |
setSendToMyself(boolean sendToMyself) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitproduceMessagepublic void addHandler(IPCHandler handler)
addHandler in interface IPCConsumerpublic void handleMessage(String message)
message - public void sendCommand(String command, String application, String entity, Object... params)
sendCommand in interface IPCProducerpublic void sendCommand(String command, String application, String entity, Map<String,Object> params)
sendCommand in interface IPCProducerpublic void produceMessage(com.fasterxml.jackson.databind.JsonNode ipcEvent)
produceMessage in interface IPCProducerpublic String getChannelId()
public List<IPCHandler> getHandlers()
public void setHandlers(List<IPCHandler> handlers)
handlers - the handlers to setpublic com.fasterxml.jackson.databind.ObjectMapper getMapper()
public com.bluejeans.utils.EnumCounter<IPCEventType> getMessageCounts()
public boolean isSendToMyself()
public void setSendToMyself(boolean sendToMyself)
sendToMyself - the sendToMyself to setCopyright © 2016. All rights reserved.