public abstract class AbstractConversationTracker extends Object implements ConversationProvider
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,Conversation> |
conversations |
| Constructor and Description |
|---|
AbstractConversationTracker() |
| Modifier and Type | Method and Description |
|---|---|
protected Conversation |
addConversation(Conversation c)
Add a new conversation to keep track of.
|
Map<Integer,Conversation> |
conversations()
Get the map of conversations that are currently being tracked.
|
Conversation |
get(int cid)
Get the conversation with the specified id.
|
void |
removeConversation(Conversation c)
Remove the specified conversation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewConversationprotected Map<Integer,Conversation> conversations
protected Conversation addConversation(Conversation c)
c - newly allocated conversation to start trackingpublic void removeConversation(Conversation c)
ConversationProviderremoveConversation in interface ConversationProviderc - conversation to be removedpublic Conversation get(int cid)
cid - conversation idpublic Map<Integer,Conversation> conversations()
Copyright © 2014. All Rights Reserved.