@GrpcGlobalServerInterceptor @Order(value=-2147483648) public class GrpcRequestScope extends Object implements Scope, BeanFactoryPostProcessor, io.grpc.ServerInterceptor, io.grpc.Context.CancellationListener
Context.
Note: If you write the @Bean definition of this class, you must use the static keyword.
| Modifier and Type | Field and Description |
|---|---|
static String |
GRPC_REQUEST_SCOPE_NAME |
| Constructor and Description |
|---|
GrpcRequestScope() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelled(io.grpc.Context context) |
Object |
get(String name,
ObjectFactory<?> objectFactory) |
String |
getConversationId() |
<ReqT,RespT> |
interceptCall(io.grpc.ServerCall<ReqT,RespT> call,
io.grpc.Metadata headers,
io.grpc.ServerCallHandler<ReqT,RespT> next) |
void |
postProcessBeanFactory(ConfigurableListableBeanFactory factory) |
void |
registerDestructionCallback(String name,
Runnable callback) |
Object |
remove(String name) |
Object |
resolveContextualObject(String key) |
public static final String GRPC_REQUEST_SCOPE_NAME
public void postProcessBeanFactory(ConfigurableListableBeanFactory factory) throws BeansException
postProcessBeanFactory in interface BeanFactoryPostProcessorBeansExceptionpublic <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> call,
io.grpc.Metadata headers,
io.grpc.ServerCallHandler<ReqT,RespT> next)
interceptCall in interface io.grpc.ServerInterceptorpublic Object get(String name, ObjectFactory<?> objectFactory)
public void registerDestructionCallback(String name, Runnable callback)
registerDestructionCallback in interface Scopepublic Object resolveContextualObject(String key)
resolveContextualObject in interface Scopepublic String getConversationId()
getConversationId in interface Scopepublic void cancelled(io.grpc.Context context)
cancelled in interface io.grpc.Context.CancellationListener