public class CachingServiceCallServiceListStrategy<T extends ServiceCallServer> extends Object implements ServiceCallServerListStrategy<T>
Constructor and Description |
---|
CachingServiceCallServiceListStrategy(ServiceCallServerListStrategy<T> delegate) |
Modifier and Type | Method and Description |
---|---|
List<T> |
getInitialListOfServers(String name)
Gets the initial list of servers.
|
long |
getTimeout() |
List<T> |
getUpdatedListOfServers(String name)
Gets the updated list of servers.
|
void |
setTimeout(long timeout) |
void |
setTimeout(long timeout,
TimeUnit unit) |
CachingServiceCallServiceListStrategy<T> |
timeout(long timeout) |
CachingServiceCallServiceListStrategy<T> |
timeout(long timeout,
TimeUnit unit) |
static <S extends ServiceCallServer> |
wrap(ServiceCallServerListStrategy<S> delegate) |
static <S extends ServiceCallServer> |
wrap(ServiceCallServerListStrategy<S> delegate,
long timeout) |
static <S extends ServiceCallServer> |
wrap(ServiceCallServerListStrategy<S> delegate,
long timeout,
TimeUnit unit) |
public CachingServiceCallServiceListStrategy(ServiceCallServerListStrategy<T> delegate)
public void setTimeout(long timeout)
public void setTimeout(long timeout, TimeUnit unit)
public long getTimeout()
public CachingServiceCallServiceListStrategy<T> timeout(long timeout)
public CachingServiceCallServiceListStrategy<T> timeout(long timeout, TimeUnit unit)
public List<T> getInitialListOfServers(String name)
ServiceCallServerListStrategy
getInitialListOfServers
in interface ServiceCallServerListStrategy<T extends ServiceCallServer>
name
- the service namepublic List<T> getUpdatedListOfServers(String name)
ServiceCallServerListStrategy
getUpdatedListOfServers
in interface ServiceCallServerListStrategy<T extends ServiceCallServer>
name
- the service namepublic static <S extends ServiceCallServer> CachingServiceCallServiceListStrategy<S> wrap(ServiceCallServerListStrategy<S> delegate)
public static <S extends ServiceCallServer> CachingServiceCallServiceListStrategy<S> wrap(ServiceCallServerListStrategy<S> delegate, long timeout)
public static <S extends ServiceCallServer> CachingServiceCallServiceListStrategy<S> wrap(ServiceCallServerListStrategy<S> delegate, long timeout, TimeUnit unit)
Apache Camel