Skip to content

Commit

Permalink
updated readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehmet committed Oct 12, 2020
1 parent e727996 commit 3a404e4
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 6 deletions.
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
HELP.md
/Jdempotent-core/target/
/Jdempotent-spring-boot-redis-starter/target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**
!**/src/test/**

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/

### VS Code ###
.vscode/
5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@


/**
*
* An aspect that used along with the @IdempotentResource annotation
*
*/
@Aspect
public class IdempotentAspect {
Expand Down Expand Up @@ -119,7 +117,7 @@ public Object execute(ProceedingJoinPoint pjp) throws Throwable {
try {
result = pjp.proceed();
} catch (Exception e) {
logger.debug(classAndMethodName + "deleted from cache with {} . Exception : {}", idempotencyKey,e);
logger.debug(classAndMethodName + "deleted from cache with {} . Exception : {}", idempotencyKey, e);
idempotentRepository.remove(idempotencyKey);
throw e;
}
Expand Down Expand Up @@ -152,7 +150,6 @@ private String generateLogPrefixForIncomingEvent(ProceedingJoinPoint pjp) {
}

/**
*
* Retrieve response from cache
*
* @param key
Expand Down Expand Up @@ -210,7 +207,6 @@ public void setIdempotentRepository(IdempotentRepository idempotentRepository) {
}

/**
*
* Generates a idempotent key for incoming event
*
* @param requestObject
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public class AspectConditionalCallback implements ErrorConditionalCallback {
config example
```
jdempotent:
enable: true
cryptography:
algorithm: MD5
cache:
Expand Down Expand Up @@ -107,5 +108,4 @@ public @interface IdempotentRabbitListener {
@AliasFor(annotation = RabbitListener.class, attribute = "queues")
String[] queues() default {};
}

```

0 comments on commit 3a404e4

Please sign in to comment.