public class IntegrationResourceHolder extends 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 String |
INPUT_CHANNEL |
static String |
MESSAGE_SOURCE |
Constructor and Description |
---|
IntegrationResourceHolder() |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String key,
Object value)
Adds attribute to this
ResourceHolder instance |
Map<String,Object> |
getAttributes()
Will return an immutable Map of current attributes.
|
org.springframework.messaging.Message<?> |
getMessage() |
boolean |
isVoid() |
void |
reset() |
void |
setMessage(org.springframework.messaging.Message<?> message) |
void |
unbound() |
public static final String MESSAGE_SOURCE
public static final String INPUT_CHANNEL
public void setMessage(org.springframework.messaging.Message<?> message)
public org.springframework.messaging.Message<?> getMessage()
public void addAttribute(String key, Object value)
ResourceHolder
instancekey
- The key.value
- The value.public Map<String,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