Interface IdempotentRepository
- All Known Implementing Classes:
AbstractIdempotentRepository
,InMemoryIdempotentRepository
public interface IdempotentRepository
an interface that the functionality required of a request store for idempotent method invocations.
-
Method Summary
Modifier and Type Method Description boolean
contains(IdempotencyKey key)
IdempotentResponseWrapper
getResponse(IdempotencyKey key)
Checks the cache for an existing call for this requestvoid
remove(IdempotencyKey key)
void
setResponse(IdempotencyKey key, IdempotentRequestWrapper request, IdempotentResponseWrapper idempotentResponse)
void
store(IdempotencyKey key, IdempotentRequestWrapper requestObject)
-
Method Details
-
contains
- Parameters:
key
-- Returns:
-
getResponse
Checks the cache for an existing call for this request- Parameters:
key
-- Returns:
-
store
- Parameters:
key
-requestObject
-
-
remove
- Parameters:
key
-
-
setResponse
void setResponse(IdempotencyKey key, IdempotentRequestWrapper request, IdempotentResponseWrapper idempotentResponse)- Parameters:
request
-idempotentResponse
-
-