|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EndpointCache<E>
A cache of service endpoints.
Note that the cache is scope-unaware,i.e. it will maintain endpoints irrespective of the scope in which services may be. Clients that target scoped services should use different caches for different scopes.
| 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 |
| Method Detail |
|---|
void clear()
void clear(String name)
throws IllegalArgumentException
name - the service name
IllegalArgumentException - if the name is null
E get(String name)
throws IllegalArgumentException
name - the name of the service
null if there is no endpoint cached for the service
IllegalArgumentException - if the name is null
void put(String name,
E endpoint)
throws IllegalArgumentException
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 | ||||||||