|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.code.rees.scope.conversation.context.DefaultHttpConversationContextManagerProvider
public class DefaultHttpConversationContextManagerProvider
The default implementation of the
HttpConversationContextManagerProvider
| Field Summary | |
|---|---|
protected ConversationContextFactory |
conversationContextFactory
|
protected int |
maxInstances
|
protected long |
monitoringFrequency
|
protected int |
monitoringThreadPoolSize
|
protected ScheduledExecutorService |
scheduler
|
protected Lock |
schedulerGuard
|
| Constructor Summary | |
|---|---|
DefaultHttpConversationContextManagerProvider()
|
|
| Method Summary | |
|---|---|
protected ConversationContextManager |
createContextManager(javax.servlet.http.HttpSession session)
|
ConversationContextManager |
getManager(javax.servlet.http.HttpServletRequest request)
Return the ConversationContextManager for this request |
ScheduledExecutorService |
getScheduler()
|
void |
init()
|
void |
setConversationContextFactory(ConversationContextFactory conversationContextFactory)
set the ConversationContextFactory |
void |
setMaxInstances(int maxInstances)
set the max number of instances of conversations |
void |
setMonitoringFrequency(long monitoringFrequency)
set the frequency in milliseconds for monitoring timeouts |
void |
setMonitoringThreadPoolSize(int monitoringThreadPoolSize)
The number of threads that will be used to monitor conversation timeouts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long monitoringFrequency
protected int maxInstances
protected int monitoringThreadPoolSize
protected ConversationContextFactory conversationContextFactory
protected transient ScheduledExecutorService scheduler
protected Lock schedulerGuard
| Constructor Detail |
|---|
public DefaultHttpConversationContextManagerProvider()
| Method Detail |
|---|
public void init()
init in interface PostConstructable@Property(value="conversation.monitoring.thread.pool.size") public void setMonitoringThreadPoolSize(int monitoringThreadPoolSize)
setMonitoringThreadPoolSize in interface HttpConversationContextManagerProvider@Property(value="conversation.monitoring.frequency") public void setMonitoringFrequency(long monitoringFrequency)
setMonitoringFrequency in interface HttpConversationContextManagerProvider@Property(value="conversation.max.instances") public void setMaxInstances(int maxInstances)
setMaxInstances in interface HttpConversationContextManagerProvider@Component public void setConversationContextFactory(ConversationContextFactory conversationContextFactory)
ConversationContextFactory
setConversationContextFactory in interface HttpConversationContextManagerProviderpublic ConversationContextManager getManager(javax.servlet.http.HttpServletRequest request)
ConversationContextManager for this request
getManager in interface HttpConversationContextManagerProviderpublic ScheduledExecutorService getScheduler()
getScheduler in interface SchedulerProviderprotected ConversationContextManager createContextManager(javax.servlet.http.HttpSession session)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||