@GrpcGlobalServerInterceptor @Order(value=-2147483648) public class GrpcRequestScope extends Object implements Scope, BeanFactoryPostProcessor, ServerInterceptor, Context.CancellationListener
| Modifier and Type | Field and Description |
|---|---|
static String |
GRPC_REQUEST_SCOPE_NAME |
| Constructor and Description |
|---|
GrpcRequestScope() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelled(Context context) |
Object |
get(String name,
ObjectFactory<?> objectFactory) |
String |
getConversationId() |
<ReqT,RespT> |
interceptCall(ServerCall<ReqT,RespT> call,
Metadata headers,
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> ServerCall.Listener<ReqT> interceptCall(ServerCall<ReqT,RespT> call, Metadata headers, ServerCallHandler<ReqT,RespT> next)
interceptCall in interface 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(Context context)
cancelled in interface Context.CancellationListener