public class SimpleChannel extends AbstractChannel
TYPE_LOCAL, TYPE_REMOTE| Constructor and Description |
|---|
SimpleChannel() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
返回处理器ID,ID必须唯一
|
List<String> |
getRegex()
返回正则
|
List<ServiceInfo> |
getServiceInfos()
返回当前处理器中的所有服务
|
int |
getType()
返回处理器类型
|
int |
getWeight()
返回处理权重
|
boolean |
isEnable()
获取是否是enable,如果为false,则不接收任何服务处理
|
boolean |
isRead()
获取是否已被读取状态
|
protected void |
receive(Event event) |
void |
setEnable(boolean enable)
设置enable
|
void |
setRead(boolean read)
设置读取状态,当刷新时,将此状态设置为false,当注册完成后,设置为true
|
addReceiveEventFilter, addReceiveEventListener, addSendEventFilter, addSendEventListener, canProcess, getCepCore, getReceiveEventFilters, getReceiveEventListeners, getSendEventFilters, getSendEventListeners, process, sendEvent, setCepCore, setId, start, stoppublic String getId()
EventProcessorgetId in interface EventProcessorgetId in interface ChannelInterfacegetId in class AbstractChannelprotected void receive(Event event)
receive in class AbstractChannelpublic List<ServiceInfo> getServiceInfos()
EventProcessorpublic int getType()
EventProcessorpublic int getWeight()
EventProcessorpublic List<String> getRegex()
EventProcessorpublic boolean isRead()
EventProcessorpublic void setRead(boolean read)
EventProcessorpublic boolean isEnable()
EventProcessorpublic void setEnable(boolean enable)
EventProcessorCopyright © 2006–2018 TinyGroup. All rights reserved.