class TransientAgent.Conversations extends ConcurrentSkipListMap<String,LinkedList<Conversation>>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
(package private) long |
purgeDueTime |
(package private) static long |
purgeInterval |
private static long |
serialVersionUID |
Constructor and Description |
---|
Conversations() |
Modifier and Type | Method and Description |
---|---|
void |
add(String convID,
Conversation conv) |
int |
purge()
Delete any conversations in state "terminated"
|
Conversation |
remove(Conversation conv)
Removes the conversation, removing the specific conversation, and the
entire entry under that conversation id if this is the last one under the
same ID.
|
ceilingEntry, ceilingKey, clear, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, equals, firstEntry, firstKey, floorEntry, floorKey, forEach, get, getOrDefault, headMap, headMap, higherEntry, higherKey, isEmpty, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, put, putIfAbsent, remove, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
hashCode, putAll, toString
private static final long serialVersionUID
static final long purgeInterval
long purgeDueTime
public Conversation remove(Conversation conv)
conv
- the conversation to removeAbstractProcess.removeConversation(casa.conversation2.Conversation)
public int purge()
public void add(String convID, Conversation conv)