Filter

fun interface Filter<T>

定义一个过滤器接口,用于实现自定义的过滤逻辑 接口使用了泛型,允许在不同的上下文中使用不同的类型进行过滤

Parameters

T

过滤器处理的上下文类型

Inheritors

Functions

Link copied to clipboard
abstract fun filter(context: T, next: FilterChain<T>): Mono<Void>

实现过滤逻辑的方法 该方法接收一个上下文对象和一个过滤链对象,执行过滤逻辑后,必须调用过滤链的next方法继续执行链上的下一个过滤器