public interface ChannelInterface extends EventProcessor
TYPE_LOCAL, TYPE_REMOTE
Modifier and Type | Method and Description |
---|---|
void |
addReceiveEventFilter(EventFilter eventFilter)
添加接收事件过滤器
|
void |
addReceiveEventListener(EventListener eventListener)
添加接收事件监听器
|
void |
addSendEventFilter(EventFilter eventFilter)
添加发送事件过滤器
|
void |
addSendEventListener(EventListener eventListener)
添加发送事件监听器
|
String |
getId()
返回处理器ID,ID必须唯一
|
void |
sendEvent(Event event)
发送事件
|
void |
start()
开始通道
|
void |
stop()
通道停止
|
canProcess, getRegex, getServiceInfos, getType, getWeight, isEnable, isRead, process, setCepCore, setEnable, setRead
void sendEvent(Event event)
event
- void addSendEventListener(EventListener eventListener)
eventListener
- void addSendEventFilter(EventFilter eventFilter)
eventFilter
- void addReceiveEventFilter(EventFilter eventFilter)
eventFilter
- void addReceiveEventListener(EventListener eventListener)
eventListener
- String getId()
EventProcessor
getId
in interface EventProcessor
void start()
void stop()
Copyright © 2006–2018 TinyGroup. All rights reserved.