public interface RequestResponseService
Modifier and Type | Method and Description |
---|---|
List<Request> |
findByCriteria(Instant from,
Instant to,
String subUri,
String subRequest)
Finds requests which matches the criteria filter.
|
Request |
findLastRequest(String uri,
String responseJoinId)
Gets last request specified by target URI and response-join ID.
|
void |
insertRequest(Request request)
Inserts new request.
|
void |
insertResponse(Response response)
Inserts new response.
|
void insertRequest(Request request)
request
- the requestvoid insertResponse(Response response)
response
- the response@Nullable Request findLastRequest(String uri, String responseJoinId)
Note: there can be more requests for one message and external system because of reprocessing the message. Therefore last request is used.
uri
- the target URIresponseJoinId
- the identifier for pairing/joining request and response togetherList<Request> findByCriteria(Instant from, Instant to, @Nullable String subUri, @Nullable String subRequest)
from
- the timestamp fromto
- the timestamp tosubUri
- the substring of URIsubRequest
- the substring of request contentRequest
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.