类 SaReactorHolder

java.lang.Object
cn.dev33.satoken.loveqq.boot.context.SaReactorHolder

public class SaReactorHolder extends Object
Reactor 上下文操作(异步),持有当前请求的 ServerWebExchange 全局引用
从以下版本开始:
1.19.0
作者:
click33
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final String
     
    static final String
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static reactor.core.publisher.Mono<com.kfyty.loveqq.framework.web.core.http.ServerRequest>
    获取 Mono < ServerRequest >
    static reactor.core.publisher.Mono<com.kfyty.loveqq.framework.web.core.http.ServerResponse>
    获取 Mono < ServerResponse >
    static <R> reactor.core.publisher.Mono<R>
    sync(cn.dev33.satoken.fun.SaRetGenericFunction<R> fun)
    将 ServerRequest/ServerResponse 写入到同步上下文中,并执行一段代码,执行完毕清除上下文

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • REQUEST_CONTEXT_ATTRIBUTE

      public static final String REQUEST_CONTEXT_ATTRIBUTE
      另请参阅:
    • RESPONSE_CONTEXT_ATTRIBUTE

      public static final String RESPONSE_CONTEXT_ATTRIBUTE
      另请参阅:
  • 构造器详细资料

    • SaReactorHolder

      public SaReactorHolder()
  • 方法详细资料

    • getRequest

      public static reactor.core.publisher.Mono<com.kfyty.loveqq.framework.web.core.http.ServerRequest> getRequest()
      获取 Mono < ServerRequest >
      返回:
      /
    • getResponse

      public static reactor.core.publisher.Mono<com.kfyty.loveqq.framework.web.core.http.ServerResponse> getResponse()
      获取 Mono < ServerResponse >
      返回:
      /
    • sync

      public static <R> reactor.core.publisher.Mono<R> sync(cn.dev33.satoken.fun.SaRetGenericFunction<R> fun)
      将 ServerRequest/ServerResponse 写入到同步上下文中,并执行一段代码,执行完毕清除上下文
      返回:
      /