public class DataServiceRetryAspect
extends java.lang.Object
implements org.springframework.core.Ordered
Constructor and Description |
---|
DataServiceRetryAspect(DataServiceRetryProperties dataServiceRetryProperties)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
java.lang.Object |
profile(org.aspectj.lang.ProceedingJoinPoint pjp)
Aspect implementation method of retrying the data service method on certain failures.
|
void |
setRetryListeners(org.springframework.retry.RetryListener[] retryListeners)
Sets the retry listeners for the retry template in use.
|
public DataServiceRetryAspect(DataServiceRetryProperties dataServiceRetryProperties)
dataServiceRetryProperties
- retry propertiespublic void setRetryListeners(org.springframework.retry.RetryListener[] retryListeners)
retryListeners
- retry listenerspublic java.lang.Object profile(org.aspectj.lang.ProceedingJoinPoint pjp) throws GenieException, IdAlreadyExistsException, SaveAttachmentException
pjp
- join pointGenieException
- any exception thrown by the data service methodIdAlreadyExistsException
- When a resource is attempted to be saved but has an unique id conflictSaveAttachmentException
- When a job attachment is attempted to be saved to underlying storage but
can't bepublic int getOrder()
getOrder
in interface org.springframework.core.Ordered