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 resource| Modifier 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.
|
org.springframework.messaging.Message<?> |
getMessage() |
boolean |
isVoid() |
void |
reset() |
void |
setMessage(org.springframework.messaging.Message<?> message) |
void |
unbound() |
public static final java.lang.String MESSAGE_SOURCE
public static final java.lang.String INPUT_CHANNEL
public void setMessage(org.springframework.messaging.Message<?> message)
public org.springframework.messaging.Message<?> getMessage()
public void addAttribute(java.lang.String key,
java.lang.Object value)
ResourceHolder instancekey - The key.value - The 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.ResourceHolderpublic void unbound()
unbound in interface org.springframework.transaction.support.ResourceHolderpublic boolean isVoid()
isVoid in interface org.springframework.transaction.support.ResourceHolder