|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gcube.common.clients.BaseEndpointCache<E>
E - the type of the cached endpointspublic class BaseEndpointCache<E>
Implements EndpointCache.
| Constructor Summary | |
|---|---|
BaseEndpointCache()
|
|
| Method Summary | |
|---|---|
void |
clear()
Reset the cache. |
void |
clear(String name)
Reset the cache for a given service. |
E |
get(String name)
Returns the endpoint cached for a given service |
void |
put(String name,
E endpoint)
Caches the endpoint of a given service |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseEndpointCache()
| Method Detail |
|---|
public void clear()
clear in interface EndpointCache<E>public void clear(String name)
clear in interface EndpointCache<E>name - the service name
public E get(String name)
throws IllegalArgumentException
get in interface EndpointCache<E>name - the name of the service
null if there is no endpoint cached for the service
IllegalArgumentException - if the name is null
public void put(String name,
E endpoint)
throws IllegalArgumentException
put in interface EndpointCache<E>name - the service nameendpoint - the endpoint
IllegalArgumentException - if the name or the endpoint are null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||