com.atlassian.bamboo.rest
Class SessionTokenMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
com.atlassian.bamboo.rest.SessionTokenMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map
public class SessionTokenMap
- extends HashMap
Provides a timeout on the put/get of sessions strings. Used to implement session timeouts.
- See Also:
- Serialized Form
|
Constructor Summary |
SessionTokenMap(long tokenTimeout)
How long should values remain in the map before they timeout? |
SessionTokenMap
public SessionTokenMap(long tokenTimeout)
- How long should values remain in the map before they timeout?
- Parameters:
tokenTimeout - max time in the map
put
public Object put(Object key,
Object value)
- Place the value in the map until it's removed for timesout
- Specified by:
put in interface Map- Overrides:
put in class HashMap
- Parameters:
key - The key to identify the objectvalue - The value we are placing in the map
- Returns:
- The value
get
public Object get(Object key)
- Specified by:
get in interface Map- Overrides:
get in class HashMap
containsValue
public boolean containsValue(Object o)
- Specified by:
containsValue in interface Map- Overrides:
containsValue in class HashMap
Copyright © 2006 Atlassian Software Systems. All Rights Reserved.