Class IntegrationResourceHolder

java.lang.Object
org.springframework.integration.transaction.IntegrationResourceHolder
All Implemented Interfaces:
ResourceHolder

public class IntegrationResourceHolder extends Object implements ResourceHolder
An implementation of the ResourceHolder which holds an instance of the current Message and the synchronization resource.
Since:
2.2
Author:
Gary Russell, Oleg Zhurakousky
  • Field Details

  • Constructor Details

    • IntegrationResourceHolder

      public IntegrationResourceHolder()
  • Method Details

    • setMessage

      public void setMessage(Message<?> message)
    • getMessage

      public Message<?> getMessage()
    • addAttribute

      public void addAttribute(String key, Object value)
      Add attribute to this ResourceHolder instance.
      Parameters:
      key - The key.
      value - The value.
    • getAttributes

      public Map<String,Object> getAttributes()
      Will return an immutable Map of current attributes. If you need to add an attribute, use the addAttribute(String, Object) method.
      Returns:
      the immutable map.
    • reset

      public void reset()
      Specified by:
      reset in interface ResourceHolder
    • unbound

      public void unbound()
      Specified by:
      unbound in interface ResourceHolder
    • isVoid

      public boolean isVoid()
      Specified by:
      isVoid in interface ResourceHolder