Class IntegrationResourceHolder
java.lang.Object
org.springframework.integration.transaction.IntegrationResourceHolder
- All Implemented Interfaces:
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String key, Object value) Add attribute to thisResourceHolder
instance.Will return an immutable Map of current attributes.Message<?>
boolean
isVoid()
void
reset()
void
setMessage
(Message<?> message) void
unbound()
-
Field Details
-
MESSAGE_SOURCE
- See Also:
-
INPUT_CHANNEL
- See Also:
-
-
Constructor Details
-
IntegrationResourceHolder
public IntegrationResourceHolder()
-
-
Method Details
-
setMessage
-
getMessage
-
addAttribute
Add attribute to thisResourceHolder
instance.- Parameters:
key
- The key.value
- The value.
-
getAttributes
Will return an immutable Map of current attributes. If you need to add an attribute, use theaddAttribute(String, Object)
method.- Returns:
- the immutable map.
-
reset
public void reset()- Specified by:
reset
in interfaceResourceHolder
-
unbound
public void unbound()- Specified by:
unbound
in interfaceResourceHolder
-
isVoid
public boolean isVoid()- Specified by:
isVoid
in interfaceResourceHolder
-