com.google.code.rees.scope.conversation.context
Class DefaultConversationContext

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by com.google.code.rees.scope.util.monitor.HashMonitoredContext<String,Object,ConversationContext>
              extended by 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 Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  String conversationName
           
protected  String id
           
 
Fields inherited from class com.google.code.rees.scope.util.monitor.HashMonitoredContext
maxIdleTime, timeOfMostRecentAccess, timeoutListeners
 
Constructor Summary
DefaultConversationContext(String conversationName, String id, long duration)
           
 
Method Summary
 String getConversationName()
          The name of the conversation for which this context represents an instance
 String getId()
          Get the context's id
 String toString()
           
 
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 class java.util.HashMap
clear, clone, containsKey, containsValue, isEmpty, size
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from interface com.google.code.rees.scope.util.monitor.Timeoutable
addTimeoutListener, getRemainingTime, reset, setMaxIdleTime, timeout
 

Field Detail

conversationName

protected String conversationName

id

protected String id
Constructor Detail

DefaultConversationContext

public DefaultConversationContext(String conversationName,
                                  String id,
                                  long duration)
Method Detail

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.