@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 BeanFactoryPostProcessor
BeansException
public <ReqT,RespT> ServerCall.Listener<ReqT> interceptCall(ServerCall<ReqT,RespT> call, Metadata headers, ServerCallHandler<ReqT,RespT> next)
interceptCall
in interface ServerInterceptor
public Object get(String name, ObjectFactory<?> objectFactory)
public void registerDestructionCallback(String name, Runnable callback)
registerDestructionCallback
in interface Scope
public Object resolveContextualObject(String key)
resolveContextualObject
in interface Scope
public String getConversationId()
getConversationId
in interface Scope
public void cancelled(Context context)
cancelled
in interface Context.CancellationListener