Interface CacheApi
public interface CacheApi
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve Cache Types Returns the list of caches.retrieveAll4(Map<String, String> headers) Retrieve Cache Types Returns the list of caches.retrofit2.Call<CacheSwitchResponse> Switch Cache Switches the cache to chosen one.retrofit2.Call<CacheSwitchResponse> switchCache(Map<String, String> headers) Switch Cache Switches the cache to chosen one.retrofit2.Call<CacheSwitchResponse> switchCache(CacheSwitchRequest cacheSwitchRequest) Switch Cache Switches the cache to chosen one.retrofit2.Call<CacheSwitchResponse> switchCache(CacheSwitchRequest cacheSwitchRequest, Map<String, String> headers) Switch Cache Switches the cache to chosen one.
-
Method Details
-
retrieveAll4
Retrieve Cache Types Returns the list of caches. Example Requests: caches- Returns:
- Call<List<CacheData>>
-
switchCache
@Headers("Content-Type:application/json") @PUT("v1/caches") retrofit2.Call<CacheSwitchResponse> switchCache(@Body CacheSwitchRequest cacheSwitchRequest) Switch Cache Switches the cache to chosen one.- Parameters:
cacheSwitchRequest- (optional)- Returns:
- Call<CacheSwitchResponse>
-
switchCache
@Headers("Content-Type:application/json") @PUT("v1/caches") retrofit2.Call<CacheSwitchResponse> switchCache()Switch Cache Switches the cache to chosen one.- Parameters:
cacheSwitchRequest- (optional)- Returns:
- Call<CacheSwitchResponse>
-
retrieveAll4
@GET("v1/caches") retrofit2.Call<List<CacheData>> retrieveAll4(@HeaderMap Map<String, String> headers) Retrieve Cache Types Returns the list of caches. Example Requests: caches- Returns:
- Call<List<CacheData>>
-
switchCache
@Headers("Content-Type:application/json") @PUT("v1/caches") retrofit2.Call<CacheSwitchResponse> switchCache(@Body CacheSwitchRequest cacheSwitchRequest, @HeaderMap Map<String, String> headers) Switch Cache Switches the cache to chosen one.- Parameters:
cacheSwitchRequest- (optional)- Returns:
- Call<CacheSwitchResponse>
-
switchCache
@Headers("Content-Type:application/json") @PUT("v1/caches") retrofit2.Call<CacheSwitchResponse> switchCache(@HeaderMap Map<String, String> headers) Switch Cache Switches the cache to chosen one.- Parameters:
cacheSwitchRequest- (optional)- Returns:
- Call<CacheSwitchResponse>
-