Polishing
This commit is contained in:
@@ -30,12 +30,16 @@ public class CacheEvictOperation extends CacheOperation {
|
||||
private final boolean beforeInvocation;
|
||||
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public CacheEvictOperation(CacheEvictOperation.Builder b) {
|
||||
super(b);
|
||||
this.cacheWide = b.cacheWide;
|
||||
this.beforeInvocation = b.beforeInvocation;
|
||||
}
|
||||
|
||||
|
||||
public boolean isCacheWide() {
|
||||
return this.cacheWide;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,9 @@ public abstract class CacheOperation implements BasicOperation {
|
||||
private final String toString;
|
||||
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
protected CacheOperation(Builder b) {
|
||||
this.name = b.name;
|
||||
this.cacheNames = b.cacheNames;
|
||||
@@ -74,22 +77,18 @@ public abstract class CacheOperation implements BasicOperation {
|
||||
return this.key;
|
||||
}
|
||||
|
||||
|
||||
public String getKeyGenerator() {
|
||||
return this.keyGenerator;
|
||||
}
|
||||
|
||||
|
||||
public String getCacheManager() {
|
||||
return this.cacheManager;
|
||||
}
|
||||
|
||||
|
||||
public String getCacheResolver() {
|
||||
return this.cacheResolver;
|
||||
}
|
||||
|
||||
|
||||
public String getCondition() {
|
||||
return this.condition;
|
||||
}
|
||||
|
||||
@@ -29,11 +29,15 @@ public class CachePutOperation extends CacheOperation {
|
||||
private final String unless;
|
||||
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public CachePutOperation(CachePutOperation.Builder b) {
|
||||
super(b);
|
||||
this.unless = b.unless;
|
||||
}
|
||||
|
||||
|
||||
public String getUnless() {
|
||||
return this.unless;
|
||||
}
|
||||
|
||||
@@ -28,15 +28,19 @@ public class CacheableOperation extends CacheOperation {
|
||||
|
||||
private final String unless;
|
||||
|
||||
private boolean sync;
|
||||
private final boolean sync;
|
||||
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public CacheableOperation(CacheableOperation.Builder b) {
|
||||
super(b);
|
||||
this.unless = b.unless;
|
||||
this.sync = b.sync;
|
||||
}
|
||||
|
||||
|
||||
public String getUnless() {
|
||||
return this.unless;
|
||||
}
|
||||
@@ -46,6 +50,9 @@ public class CacheableOperation extends CacheOperation {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public static class Builder extends CacheOperation.Builder {
|
||||
|
||||
private String unless;
|
||||
|
||||
Reference in New Issue
Block a user