com.joctopus.ui.joctopus
Class ChatCache

java.lang.Object
  extended by com.joctopus.ui.joctopus.ChatCache

public class ChatCache
extends java.lang.Object

This class stores the chat history of entire users.

Since:
1.0

Field Summary
static java.util.Vector<ChatHistory> vChatHistory
          chat history for each users.
 
Constructor Summary
ChatCache()
           
 
Method Summary
static void clearHistory(Users user)
          clears the chat history for the given user.
static ChatHistory findHistory(Users user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vChatHistory

public static java.util.Vector<ChatHistory> vChatHistory
chat history for each users. Each user has its chathistory object associated with it. Each chat history has multiple ChatData object with it.

Constructor Detail

ChatCache

public ChatCache()
Method Detail

findHistory

public static ChatHistory findHistory(Users user)
Parameters:
user - user for which to find ChatHistory
Returns:
null with no chat history is found else associated ChatHistory.

clearHistory

public static void clearHistory(Users user)
clears the chat history for the given user.

Parameters:
user - user Object