public interface HandlerContextAware
RequestHandler2
.
This interface is subject to change and should not be implemented by users of the SDK.
Modifier and Type | Method and Description |
---|---|
|
addHandlerContext(HandlerContextKey
Adds a context to that is visible to all
RequestHandler2 s. |
|
getHandlerContext(HandlerContextKey
Return the context for the given key if present; else return null.
|
void addHandlerContext(HandlerContextKey key, X value)
RequestHandler2
s.
Note that, context added here will available only for the scope of
the request execution and will not be marshalled over the wire.key
- the key for the property being set in the request.value
- the value for the property being set in the request.X getHandlerContext(HandlerContextKey key)
key
- the key for the context