public abstract class AbstractCachingDestinationProvider extends Object implements DestinationProvider
DestinationProvider implementations that cache destination URI.
Caching can be disabled by setting the cache property to false; forcing a
destination lookup for every call.
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger
Logger available to subclasses.
|
| Constructor and Description |
|---|
AbstractCachingDestinationProvider() |
| Modifier and Type | Method and Description |
|---|---|
URI |
getDestination()
Return the destination URI.
|
protected abstract URI |
lookupDestination()
Abstract template method that looks up the URI.
|
void |
setCache(boolean cache)
Set whether to cache resolved destinations.
|
protected final org.apache.commons.logging.Log logger
public void setCache(boolean cache)
true. This flag can be turned off to
re-lookup a destination for each operation, which allows for hot restarting of destinations. This is mainly
useful during development.public final URI getDestination()
DestinationProvidergetDestination in interface DestinationProviderCopyright © 2020 Pivotal Software. All rights reserved.