public class ConnectionCache extends java.util.concurrent.ConcurrentHashMap<java.lang.String,ServiceConnection> implements ISessionCache
java.util.concurrent.ConcurrentHashMap.KeySetView<K,V>
Modifier and Type | Method and Description |
---|---|
void |
addUser(java.lang.String userid,
java.lang.String password) |
void |
addUsers(java.util.Map<java.lang.String,java.lang.String> users) |
boolean |
checkConnection(java.lang.String handle) |
void |
clearUsers() |
java.lang.String |
connect(java.lang.String userid,
java.lang.String password,
long timeOutSeconds) |
void |
deleteUser(java.lang.String userid) |
void |
disconnect(java.lang.String handle) |
void |
expire(java.lang.String handle) |
static ConnectionCache |
getInstance() |
java.lang.String |
getPassword(java.lang.String userid) |
ServiceConnection |
getSession(java.lang.String handle) |
boolean |
hasUser(java.lang.String userid) |
boolean |
hasUsers() |
void |
shutdown() |
void |
updateUser(java.lang.String userid,
java.lang.String password) |
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
public static ConnectionCache getInstance()
public void addUsers(java.util.Map<java.lang.String,java.lang.String> users)
public void addUser(java.lang.String userid, java.lang.String password)
public void updateUser(java.lang.String userid, java.lang.String password)
public void deleteUser(java.lang.String userid)
public void clearUsers()
public java.lang.String connect(java.lang.String userid, java.lang.String password, long timeOutSeconds)
connect
in interface ISessionCache
public void disconnect(java.lang.String handle)
disconnect
in interface ISessionCache
public void expire(java.lang.String handle)
expire
in interface ISessionCache
public ServiceConnection getSession(java.lang.String handle)
getSession
in interface ISessionCache
public boolean checkConnection(java.lang.String handle)
checkConnection
in interface ISessionCache
public void shutdown()
shutdown
in interface ISessionCache
public boolean hasUser(java.lang.String userid)
public boolean hasUsers()
public java.lang.String getPassword(java.lang.String userid)
Copyright © 2004-2014 The YAWL Foundation.