public class IntegrationResourceHolder extends Object implements 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.
|
Message<?> |
getMessage() |
boolean |
isVoid() |
void |
reset() |
void |
setMessage(Message<?> message) |
void |
unbound() |
public static final String MESSAGE_SOURCE
public static final String INPUT_CHANNEL
public void setMessage(Message<?> message)
public 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 ResourceHolder
public void unbound()
unbound
in interface ResourceHolder
public boolean isVoid()
isVoid
in interface ResourceHolder