public class DtMessageRouterRule extends Object
| 限定符 | 构造器和说明 |
|---|---|
protected |
DtMessageRouterRule(DtMessageRouter routerBuilder) |
protected DtMessageRouterRule(DtMessageRouter routerBuilder)
public DtMessageRouterRule async(boolean async)
async - the asyncpublic DtMessageRouterRule corpId(String corpId)
corpId - the corp idpublic DtMessageRouterRule eventType(String eventType)
eventType - the event typepublic DtMessageRouterRule eventTypeGroup(List<String> eventGroup)
public DtMessageRouterRule eventTypeRegex(String regex)
regex - the regexpublic DtMessageRouterRule matcher(DtMessageMatcher matcher)
matcher - the matcherpublic DtMessageRouterRule interceptor(DtMessageInterceptor interceptor)
interceptor - the interceptorpublic DtMessageRouterRule interceptor(DtMessageInterceptor interceptor, DtMessageInterceptor... otherInterceptors)
interceptor - the interceptorotherInterceptors - the other interceptorspublic DtMessageRouterRule handler(DtMessageHandler handler)
handler - the handlerpublic DtMessageRouterRule handler(DtMessageHandler handler, DtMessageHandler... otherHandlers)
handler - the handlerotherHandlers - the other handlerspublic DtMessageRouter end()
public DtMessageRouter next()
protected boolean test(DtEventMessage message)
message - the ding talk event messageprotected Boolean service(DtEventMessage message, Map<String,Object> context, DtService dtService, DtErrorExceptionHandler exceptionHandler)
message - the dt messagecontext - the contextdtService - the serviceexceptionHandler - the exception handlerCopyright © 2021. All rights reserved.