Class SynchronizedAttributeAccessor
java.lang.Object
org.springframework.batch.infrastructure.repeat.context.SynchronizedAttributeAccessor
- All Implemented Interfaces:
org.springframework.core.AttributeAccessor
- Direct Known Subclasses:
JobContext, RepeatContextSupport, StepContext
public class SynchronizedAttributeAccessor
extends Object
implements org.springframework.core.AttributeAccessor
An
AttributeAccessor that synchronizes on a mutex (not this) before modifying
or accessing the underlying attributes.- Author:
- Dave Syer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]boolean@Nullable ObjectgetAttribute(String name) booleanhasAttribute(String name) inthashCode()@Nullable ObjectremoveAttribute(String name) voidsetAttribute(String name, @Nullable Object value) @Nullable ObjectsetAttributeIfAbsent(String name, Object value) Additional support for atomic put if absent.toString()Methods inherited from interface org.springframework.core.AttributeAccessor
computeAttribute
-
Constructor Details
-
SynchronizedAttributeAccessor
public SynchronizedAttributeAccessor()
-
-
Method Details
-
attributeNames
- Specified by:
attributeNamesin interfaceorg.springframework.core.AttributeAccessor
-
equals
-
getAttribute
-
hasAttribute
- Specified by:
hasAttributein interfaceorg.springframework.core.AttributeAccessor
-
hashCode
-
removeAttribute
-
setAttribute
-
setAttributeIfAbsent
-
toString
-