|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.clients.cache.DefaultEndpointCache<A>
A - the type of the service addressespublic class DefaultEndpointCache<A>
Base implementation of EndpointCache.
DiscoveryDelegate| Constructor Summary | |
|---|---|
DefaultEndpointCache()
|
|
| Method Summary | |
|---|---|
void |
clear(Key key)
Resets the cache for a given Key. |
A |
get(Key key)
Returns the address cached for a given Key |
void |
put(Key key,
A address)
Caches an endpoint address for a given Key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEndpointCache()
| Method Detail |
|---|
public void clear(Key key)
throws IllegalArgumentException
EndpointCacheKey.
clear in interface EndpointCache<A>key - the key
IllegalArgumentException - if the key is null
public A get(Key key)
throws IllegalArgumentException
EndpointCacheKey
get in interface EndpointCache<A>key - the key
null if there is no endpoint address cached for the service
IllegalArgumentException - if the key is null
public void put(Key key,
A address)
throws IllegalArgumentException
EndpointCacheKey
put in interface EndpointCache<A>address - the address
IllegalArgumentException - if the key or the address are null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||