public class InMemoryServerAssociationStore extends java.lang.Object implements ServerAssociationStore
Modifier and Type | Field and Description |
---|---|
private int |
_counter |
private java.util.Map |
_handleMap |
private static org.apache.commons.logging.Log |
_log |
private java.lang.String |
_timestamp |
private static boolean |
DEBUG |
Constructor and Description |
---|
InMemoryServerAssociationStore() |
Modifier and Type | Method and Description |
---|---|
Association |
generate(java.lang.String type,
int expiryIn) |
Association |
load(java.lang.String handle) |
void |
remove(java.lang.String handle) |
private void |
removeExpired() |
protected int |
size() |
private static org.apache.commons.logging.Log _log
private static final boolean DEBUG
private java.lang.String _timestamp
private int _counter
private java.util.Map _handleMap
public Association generate(java.lang.String type, int expiryIn) throws AssociationException
generate
in interface ServerAssociationStore
AssociationException
public Association load(java.lang.String handle)
load
in interface ServerAssociationStore
public void remove(java.lang.String handle)
remove
in interface ServerAssociationStore
private void removeExpired()
protected int size()
Copyright 2006-2008 Sxip Identity Corporation