|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConversationContextManager
Uses a ConversationContextFactory to manage the creation, caching,
retrieval, removal, and expiration of conversations
| Method Summary | |
|---|---|
ConversationContext |
createContext(String conversationName,
long maxIdleTimeMillis)
Creates a new context for the given conversation name, using the given idle time |
void |
destroy()
Cleanup and release the manager's resources |
ConversationContext |
getContext(String conversationName,
String conversationId)
Retrieve the context identified by the given information, creating a new one if none exists. |
ConversationContext |
remove(String conversationName,
String conversationId)
Remove the context identified by the given information, returning the context being removed |
void |
setContextFactory(ConversationContextFactory contextFactory)
Set the ConversationContextFactory to be used by this manager |
void |
setMaxInstances(int maxInstances)
Set the max number of cached ConversationContexts. |
| Method Detail |
|---|
void setMaxInstances(int maxInstances)
ConversationContexts.
maxInstances - void setContextFactory(ConversationContextFactory contextFactory)
ConversationContextFactory to be used by this manager
contextFactory -
ConversationContext createContext(String conversationName,
long maxIdleTimeMillis)
conversationName - maxIdleTimeMillis -
ConversationContext getContext(String conversationName,
String conversationId)
conversationName - conversationId -
ConversationContext remove(String conversationName,
String conversationId)
conversationName - conversationId -
void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||