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, stop
public String getId()
EventProcessor
getId
in interface EventProcessor
getId
in interface ChannelInterface
getId
in class AbstractChannel
protected void receive(Event event)
receive
in class AbstractChannel
public List<ServiceInfo> getServiceInfos()
EventProcessor
public int getType()
EventProcessor
public int getWeight()
EventProcessor
public List<String> getRegex()
EventProcessor
public boolean isRead()
EventProcessor
public void setRead(boolean read)
EventProcessor
public boolean isEnable()
EventProcessor
public void setEnable(boolean enable)
EventProcessor
Copyright © 2006–2018 TinyGroup. All rights reserved.