com.google.code.rees.scope.conversation.context
Class DefaultConversationContext
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
com.google.code.rees.scope.util.monitor.HashMonitoredContext<String,Object,ConversationContext>
com.google.code.rees.scope.conversation.context.DefaultConversationContext
- All Implemented Interfaces:
- ConversationContext, MonitoredContext<String,Object,ConversationContext>, Timeoutable<ConversationContext>, Serializable, Cloneable, Map<String,Object>
public class DefaultConversationContext
- extends HashMonitoredContext<String,Object,ConversationContext>
- implements ConversationContext
The default implementation of the ConversationContext
- Author:
- rees.byars
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class com.google.code.rees.scope.util.monitor.HashMonitoredContext |
addTimeoutListener, entrySet, get, getRemainingTime, keySet, ping, put, putAll, remove, reset, setMaxIdleTime, timeout, values |
| Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
conversationName
protected String conversationName
id
protected String id
DefaultConversationContext
public DefaultConversationContext(String conversationName,
String id,
long duration)
getConversationName
public String getConversationName()
- The name of the conversation for which this context represents an
instance
- Specified by:
getConversationName in interface ConversationContext
- Returns:
getId
public String getId()
- Get the context's id
- Specified by:
getId in interface ConversationContext- Specified by:
getId in interface Timeoutable<ConversationContext>
- Returns:
toString
public String toString()
- Overrides:
toString in class AbstractMap<String,Object>
Copyright © 2012-2013. All Rights Reserved.