类 SynchronizedAttributeAccessor
- java.lang.Object
- org.springframework.batch.repeat.context.SynchronizedAttributeAccessor
- 所有已实现的接口:
org.springframework.core.AttributeAccessor
- 直接已知子类:
JobContext
,RepeatContextSupport
,StepContext
public class SynchronizedAttributeAccessor extends java.lang.Object implements org.springframework.core.AttributeAccessor
AnAttributeAccessor
that synchronizes on a mutex (not this) before modifying or accessing the underlying attributes.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 SynchronizedAttributeAccessor()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.String[]
attributeNames()
boolean
equals(java.lang.Object other)
java.lang.Object
getAttribute(java.lang.String name)
boolean
hasAttribute(java.lang.String name)
int
hashCode()
java.lang.Object
removeAttribute(java.lang.String name)
void
setAttribute(java.lang.String name, java.lang.Object value)
java.lang.Object
setAttributeIfAbsent(java.lang.String name, java.lang.Object value)
Additional support for atomic put if absent.java.lang.String
toString()
构造器详细资料
SynchronizedAttributeAccessor
public SynchronizedAttributeAccessor()
方法详细资料
attributeNames
public java.lang.String[] attributeNames()
- 指定者:
attributeNames
在接口中org.springframework.core.AttributeAccessor
equals
public boolean equals(java.lang.Object other)
- 覆盖:
equals
在类中java.lang.Object
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- 指定者:
getAttribute
在接口中org.springframework.core.AttributeAccessor
hasAttribute
public boolean hasAttribute(java.lang.String name)
- 指定者:
hasAttribute
在接口中org.springframework.core.AttributeAccessor
hashCode
public int hashCode()
- 覆盖:
hashCode
在类中java.lang.Object
removeAttribute
public java.lang.Object removeAttribute(java.lang.String name)
- 指定者:
removeAttribute
在接口中org.springframework.core.AttributeAccessor
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value)
- 指定者:
setAttribute
在接口中org.springframework.core.AttributeAccessor
setAttributeIfAbsent
public java.lang.Object setAttributeIfAbsent(java.lang.String name, java.lang.Object value)
Additional support for atomic put if absent.- 参数:
name
- the key for the attribute namevalue
- the value of the attribute- 返回:
- null if the attribute was not already set, the existing value otherwise.
toString
public java.lang.String toString()
- 覆盖:
toString
在类中java.lang.Object