类 SynchronizedAttributeAccessor

  • 所有已实现的接口:
    org.springframework.core.AttributeAccessor
    直接已知子类:
    JobContext, RepeatContextSupport, StepContext

    public class SynchronizedAttributeAccessor
    extends java.lang.Object
    implements org.springframework.core.AttributeAccessor
    An AttributeAccessor that synchronizes on a mutex (not this) before modifying or accessing the underlying attributes.
    作者:
    Dave Syer
    • 方法详细资料

      • 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 name
        value - 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