public interface AmqPayloadPersistenceService
Modifier and Type | Method and Description |
---|---|
long |
create(String payload)
Stores the given payload and returns the key associated with the record
|
Optional<String> |
findAmqPayload(long payloadId)
Returns an Optional
|
int |
purge(Instant createdTimeThreshold)
Purges the payload records which have been created before the threshold time specified
|
long create(String payload)
payload
- non null payload to storeNullPointerException
- if payload is nullOptional<String> findAmqPayload(long payloadId)
payloadId
- key of the payload recordNullPointerException
- if payloadId is nullint purge(Instant createdTimeThreshold)
createdTimeThreshold
- threshold which filters the records to deleteNullPointerException
- if createdTimeThreshold is nullCopyright © 2003–2017 Atlassian. All rights reserved.