processingIntercept
fun processingIntercept(id: ID = randomID(), interceptor: EventProcessingInterceptor): EventInterceptorsGenerator(source)
fun processingIntercept(id: String, interceptor: EventProcessingInterceptor): EventInterceptorsGenerator(source)
fun processingIntercept(id: ID = randomID(), priority: Int = PriorityConstant.NORMAL, interceptFunction: suspend (EventProcessingInterceptor.Context) -> EventProcessingResult): EventInterceptorsGenerator(source)
提供一个 id, 优先级 和 拦截函数,在内部构建一个拦截器。
fun processingIntercept(id: String, priority: Int = PriorityConstant.NORMAL, interceptFunction: suspend (EventProcessingInterceptor.Context) -> EventProcessingResult): EventInterceptorsGenerator(source)