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 Summary
Fields Modifier and Type Field Description static String
INPUT_CHANNEL
static String
MESSAGE_SOURCE
-
Constructor Summary
Constructors Constructor Description IntegrationResourceHolder()
-
Method Summary
Modifier and Type Method Description void
addAttribute(String key, Object value)
Adds attribute to thisResourceHolder
instanceMap<String,Object>
getAttributes()
Will return an immutable Map of current attributes.Message<?>
getMessage()
boolean
isVoid()
void
reset()
void
setMessage(Message<?> message)
void
unbound()
-
Field Details
-
MESSAGE_SOURCE
- See Also:
- Constant Field Values
-
INPUT_CHANNEL
- See Also:
- Constant Field Values
-
-
Constructor Details
-
IntegrationResourceHolder
public IntegrationResourceHolder()
-
-
Method Details
-
setMessage
-
getMessage
-
addAttribute
Adds 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
-