Interface HvlLogProducerCacheRestService
- All Known Implementing Classes:
HvlLogProducerCacheRestController
@Validated
@HvlPublicFeignRestService
@FeignClient(name="logProducerCachePublicRestService",
path="${hvl.logger.producer.cache.path:/cache}",
url="${hvl.logger.producer.url}")
public interface HvlLogProducerCacheRestService
A restful service which provides specific operational methods for logging cache.
-
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse<Boolean>
getValueByKey
(@NotBlank String key) Get cache by key.tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlLogProducerCacheModel>>
queryList
(@NotNull HvlLogProducerCacheQueryModel cacheQueryModel) Query cache list.
-
Method Details
-
queryList
@PostMapping(path="/list", consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlLogProducerCacheModel>> queryList(@NotNull @RequestBody @NotNull HvlLogProducerCacheQueryModel cacheQueryModel) Query cache list.- Parameters:
cacheQueryModel
- the cache query model- Returns:
- the hvl response
-
getValueByKey
@GetMapping(path="/value/by-key/{key}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Boolean> getValueByKey(@NotBlank @PathVariable("key") @NotBlank String key) throws HvlLogProducerCacheNotFoundException Get cache by key.- Parameters:
key
- the key- Returns:
- the by key
- Throws:
HvlLogProducerCacheNotFoundException
- the hvl log producer cache not found exception
-