public interface EventProcessor
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_LOCAL |
static int |
TYPE_REMOTE |
Modifier and Type | Method and Description |
---|---|
boolean |
canProcess(String nodeString)
判断当前处理器是否能处理对应的节点
|
String |
getId()
返回处理器ID,ID必须唯一
|
List<String> |
getRegex()
返回正则
|
List<ServiceInfo> |
getServiceInfos()
返回当前处理器中的所有服务
|
int |
getType()
返回处理器类型
|
int |
getWeight()
返回处理权重
|
boolean |
isEnable()
获取是否是enable,如果为false,则不接收任何服务处理
|
boolean |
isRead()
获取是否已被读取状态
|
void |
process(Event event)
处理事件
|
void |
setCepCore(CEPCore cepCore)
设置CEPCore
|
void |
setEnable(boolean enable)
设置enable
|
void |
setRead(boolean read)
设置读取状态,当刷新时,将此状态设置为false,当注册完成后,设置为true
|
static final int TYPE_REMOTE
static final int TYPE_LOCAL
boolean canProcess(String nodeString)
nodeString
- void process(Event event)
event
- void setCepCore(CEPCore cepCore)
cepCore
- List<ServiceInfo> getServiceInfos()
String getId()
int getType()
int getWeight()
boolean isRead()
void setRead(boolean read)
read
- boolean isEnable()
void setEnable(boolean enable)
enable
- Copyright © 2006–2018 TinyGroup. All rights reserved.