Top Description Inners Fields Constructors Methods
org.springframework.cache.interceptor

public Class CacheableOperation

extends CacheOperation
Class Inheritance
Imports
org.springframework.lang.Nullable

Class describing a cache 'cacheable' operation.
Authors
Costin Leau, Phillip Webb, Marcin Kamionowski
Since
3.1

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
CacheableOperation.Builder

A builder that can be used to create a CacheableOperation.

Field Summary

Modifier and TypeField and Description
private final boolean
private final String

Constructor Summary

AccessConstructor and Description
public
CacheableOperation(CacheableOperation.Builder b)

Create a new CacheableOperation instance from the given builder.

Method Summary

Modifier and TypeMethod and Description
public String
public boolean
Inherited from org.springframework.cache.interceptor.CacheOperation:
equalsgetCacheManagergetCacheNamesgetCacheResolvergetConditiongetKeygetKeyGeneratorgetNamehashCodetoString

Field Detail

syncback to summary
private final boolean sync
unlessback to summary
private final String unless
Annotations
@Nullable

Constructor Detail

CacheableOperationback to summary
public CacheableOperation(CacheableOperation.Builder b)

Create a new CacheableOperation instance from the given builder.

Since
4.3

Method Detail

getUnlessback to summary
public String getUnless()
Annotations
@Nullable
isSyncback to summary
public boolean isSync()
org.springframework.cache.interceptor back to summary

public Class CacheableOperation.Builder

extends Builder
Class Inheritance

A builder that can be used to create a CacheableOperation.
Since
4.3

Field Summary

Modifier and TypeField and Description
private boolean
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public CacheableOperation
protected StringBuilder
getOperationDescription()

Overrides org.springframework.cache.interceptor.CacheOperation.Builder.getOperationDescription.

Return an identifying description for this caching operation.

public void
setSync(boolean sync)

public void
setUnless(String unless)

Inherited from org.springframework.cache.interceptor.CacheOperation.Builder:
getCacheManagergetCacheNamesgetCacheResolvergetKeygetKeyGeneratorsetCacheManagersetCacheNamesetCacheNamessetCacheResolversetConditionsetKeysetKeyGeneratorsetName

Field Detail

syncback to summary
private boolean sync
unlessback to summary
private String unless
Annotations
@Nullable

Constructor Detail

Builderback to summary
public Builder()

Method Detail

buildback to summary
public CacheableOperation build()

Implements abstract org.springframework.cache.interceptor.CacheOperation.Builder.build.

Annotations
@Override
getOperationDescriptionback to summary
protected StringBuilder getOperationDescription()

Overrides org.springframework.cache.interceptor.CacheOperation.Builder.getOperationDescription.

Doc from org.springframework.cache.interceptor.CacheOperation.Builder.getOperationDescription.

Return an identifying description for this caching operation.

Available to subclasses, for inclusion in their toString() result.

Annotations
@Override
setSyncback to summary
public void setSync(boolean sync)
setUnlessback to summary
public void setUnless(String unless)