|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.livetribe.slp.spi.ServiceInfoCache
public class ServiceInfoCache
A cache for ServiceInfo
s, that provides facilities to store, update, remove and query.
Constructor Summary | |
---|---|
ServiceInfoCache()
|
Method Summary | |
---|---|
void |
clear()
|
ServiceInfo |
get(ServiceInfo.Key key)
Returns the service correspondent to the given ServiceInfo.Key . |
Collection |
getServiceInfos()
|
int |
getSize()
|
void |
lock()
|
List |
match(ServiceType serviceType,
Scopes scopes,
Filter filter,
String language)
|
List |
purge()
Purges from this cache entries whose registration time plus their lifetime is less than the current time; that is, entries that should have been renewed but for some reason they have not been. |
ServiceInfo |
put(ServiceInfo service)
Adds the given service to this cache replacing an eventually existing entry. |
ServiceInfo |
remove(ServiceInfo.Key key)
Removes an existing entry with the given ServiceInfo.Key ; if the entry does not exist, does nothing. |
void |
unlock()
|
ServiceInfo |
updateAdd(ServiceInfo service)
Updates an existing entry with the given service, adding information contained in the given service; if the entry does not exist, does nothing. |
ServiceInfo |
updateRemove(ServiceInfo service)
Updates an existing entry with the given service, removing information contained in the given service; if the entry does not exist, does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceInfoCache()
Method Detail |
---|
public void lock()
public void unlock()
public ServiceInfo put(ServiceInfo service)
service
- The service to cache
public int getSize()
public ServiceInfo get(ServiceInfo.Key key)
ServiceInfo.Key
.
public ServiceInfo updateAdd(ServiceInfo service)
service
- The service containing the values that update an eventually existing service
public ServiceInfo updateRemove(ServiceInfo service)
service
- The service containing the values that update an eventually existing service
public ServiceInfo remove(ServiceInfo.Key key)
ServiceInfo.Key
; if the entry does not exist, does nothing.
public List match(ServiceType serviceType, Scopes scopes, Filter filter, String language)
public Collection getServiceInfos()
public void clear()
public List purge()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |