public interface HttpConversationContext extends BoundContext<HttpServletRequest>, ConversationContext
Modifier and Type | Method and Description |
---|---|
default void |
activateLazily(Consumer<HttpServletRequest> transientConversationInitializationCallback)
Activate the conversation context lazily - neither determine the conversation id, nor initialize the context.
|
boolean |
destroy(HttpSession session)
If the context is not currently associated with a
HttpServletRequest , then the context will be associated with
the specified HttpSession (for this thread), activated, destroyed, and then deactivated. |
associate, dissociate
activate, activate, generateConversationId, getConcurrentAccessTimeout, getConversation, getConversations, getCurrentConversation, getDefaultTimeout, getParameterName, invalidate, setConcurrentAccessTimeout, setDefaultTimeout, setParameterName
deactivate
clearAndSet, getAllContextualInstances
destroy
boolean destroy(HttpSession session)
If the context is not currently associated with a HttpServletRequest
, then the context will be associated with
the specified HttpSession
(for this thread), activated, destroyed, and then deactivated. Any conversations
associated with the context will also be destroyed.
If the context is already associated with a HttpServletRequest
then this call will detach the context from the
underlying Http Session, and mark the context for destruction when the request is destroyed.
This will cause any transient conversations, and any long running conversations associated with the session, to be destroyed.
session
- the HttpSession
in which to store the bean instancesdefault void activateLazily(Consumer<HttpServletRequest> transientConversationInitializationCallback)
Activate the conversation context lazily - neither determine the conversation id, nor initialize the context. The context is only initialized when a
conversation-scoped bean is accessed for the first time. The callback, if specified, is executed during initialization of a transient conversation. The
implementation must throw a RuntimeException
if the lazy initialization is not supported.
transientConversationInitializationCallback
- Copyright © 2019 JBoss by Red Hat. All rights reserved.