@Repository @Transactional(propagation=MANDATORY) public class RequestResponseDaoJpaImpl extends Object implements RequestResponseDao
RequestResponseDao
interface.Modifier and Type | Field and Description |
---|---|
static int |
MAX_REQUESTS_IN_ONE_QUERY |
Constructor and Description |
---|
RequestResponseDaoJpaImpl() |
Modifier and Type | Method and Description |
---|---|
List<Request> |
findByCriteria(Instant from,
Instant to,
String subUri,
String subRequest)
Finds request 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.
|
public static final int MAX_REQUESTS_IN_ONE_QUERY
public void insertRequest(Request request)
RequestResponseDao
insertRequest
in interface RequestResponseDao
request
- the requestpublic void insertResponse(Response response)
RequestResponseDao
insertResponse
in interface RequestResponseDao
response
- the response@Nullable public Request findLastRequest(String uri, String responseJoinId)
RequestResponseDao
findLastRequest
in interface RequestResponseDao
uri
- the target URIresponseJoinId
- the identifier for pairing/joining request and response togetherpublic List<Request> findByCriteria(Instant from, Instant to, String subUri, String subRequest)
RequestResponseDao
findByCriteria
in interface RequestResponseDao
from
- the timestamp fromto
- the timestamp tosubUri
- the substring of URIsubRequest
- the substring of request contentRequest
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.