public class IntegrationResourceHolder
extends java.lang.Object
implements org.springframework.transaction.support.ResourceHolder
ResourceHolder
which holds an instance of the current Message
and the synchronization resourceModifier and Type | Field and Description |
---|---|
static java.lang.String |
INPUT_CHANNEL |
static java.lang.String |
MESSAGE_SOURCE |
Constructor and Description |
---|
IntegrationResourceHolder() |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String key,
java.lang.Object value)
Adds attribute to this
ResourceHolder instance |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Will return an immutable Map of current attributes.
|
Message<?> |
getMessage() |
boolean |
isVoid() |
void |
reset() |
void |
setMessage(Message<?> message) |
void |
unbound() |
public static final java.lang.String MESSAGE_SOURCE
public static final java.lang.String INPUT_CHANNEL
public void setMessage(Message<?> message)
public Message<?> getMessage()
public void addAttribute(java.lang.String key, java.lang.Object value)
ResourceHolder
instancekey
- value
- public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
addAttribute(String, Object)
method.public void reset()
reset
in interface org.springframework.transaction.support.ResourceHolder
public void unbound()
unbound
in interface org.springframework.transaction.support.ResourceHolder
public boolean isVoid()
isVoid
in interface org.springframework.transaction.support.ResourceHolder