public interface ConsumerCache
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all consumers from this cache.
|
WSRPConsumer |
getConsumer(String id)
Retrieves the consumer identified by the specified identifier, updating its state from persistence if required.
|
Collection<WSRPConsumer> |
getConsumers()
Retrieves the up-to-date collection of consumers known by this cache.
|
void |
initFromStorage()
Initializes this cache from persistent store.
|
boolean |
isInvalidated()
Are we invalidated?
|
void |
putConsumer(String id,
WSRPConsumer consumer)
Puts the specified consumer in cache under the specified identifier.
|
WSRPConsumer |
removeConsumer(String id)
Removes the consumer identified by the specified identifier from this cache.
|
void |
setInvalidated(boolean invalidated)
Specifies whether this cache should be invalidated.
|
Collection<WSRPConsumer> getConsumers()
WSRPConsumer getConsumer(String id)
id - the identifier of the consumer to retrievenull if no such consumer exists in persistenceWSRPConsumer removeConsumer(String id)
id - the identifier of the consumer to removenull if no such consumer previously was stored in this cachevoid putConsumer(String id, WSRPConsumer consumer)
id - the consumer's identifierconsumer - the consumer to put in this cachevoid clear()
boolean isInvalidated()
true if this cache has been invalidated, false otherwisevoid setInvalidated(boolean invalidated)
invalidated - true to mark this cache as invalidated, false otherwisevoid initFromStorage()
Copyright © 2006-2014 GateIn. All Rights Reserved.