Code example for Hashtable

Methods: size

		synchronized(this) { 
			return this.xid++; 
	public int Size () {return this.messages.size();} 
	public void AddCommand (int xid, SentimentCommand command) 
		// Get a transaction ID for the command and add it to the queue 
		messages.put(new Integer(xid), command); 
	public void RemoveCommand (int xid) 
	/* Given a transaction id, remove the command associated with it from the message queue 
		messages.remove(new Integer(xid)); 
	public SentimentCommand CommandFromID (int xid)