Interface IRemoteCacheDispatcher
- All Known Implementing Classes:
RemoteHttpCacheDispatcher
public interface IRemoteCacheDispatcher
In the future, this can be used as a generic dispatcher abstraction.
At the time of creation, only the http remote cache uses it. The RMI remote could be converted to use it as well.
-
Method Summary
Modifier and TypeMethodDescription<K,
V, T> RemoteCacheResponse<T> dispatchRequest
(RemoteCacheRequest<K, V> remoteCacheRequest) All requests will go through this method.
-
Method Details
-
dispatchRequest
<K,V, RemoteCacheResponse<T> dispatchRequestT> (RemoteCacheRequest<K, V> remoteCacheRequest) throws IOExceptionAll requests will go through this method. The dispatcher implementation will send the request remotely.- Parameters:
remoteCacheRequest
-- Returns:
- RemoteCacheResponse
- Throws:
IOException
-