A - the type of the service addressespublic class DefaultEndpointCache<A> extends Object implements EndpointCache<A>
EndpointCache.DiscoveryDelegate| Constructor and Description |
|---|
DefaultEndpointCache() |
public void clear(Key key) throws IllegalArgumentException
EndpointCacheKey.clear in interface EndpointCache<A>key - the keyIllegalArgumentException - if the key is nullpublic A get(Key key) throws IllegalArgumentException
EndpointCacheKeyget in interface EndpointCache<A>key - the keynull if there is no endpoint address cached for the serviceIllegalArgumentException - if the key is nullpublic void put(Key key, A address) throws IllegalArgumentException
EndpointCacheKeyput in interface EndpointCache<A>address - the addressIllegalArgumentException - if the key or the address are nullCopyright © 2017. All Rights Reserved.