|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Key based Push/Pull queue attribute controller. It defines a policy applied when the requested message cannot be found. Two default policies are provided (specific implementations can define other).
Field Summary | |
static String |
EXCEPTION_MESSAGE_NOT_FOUND_POLICY
"Message not found" policy that throw a KeyNotFoundException
exception. |
static String |
RETURN_NULL_MESSAGE_NOT_FOUND_POLICY
"Message not found" policy that returns null as result of
the pull method. |
Method Summary | |
String |
getKeyName()
Returns the name to which the key is mapped in the Pull context. |
String |
getMessageNotFoundPolicy()
Returns the policy applied when a message cannot be found. |
void |
setKeyName(String name)
Sets the name to which the key is mapped in the Pull context. |
void |
setMessageNotFoundPolicy(String policy)
Sets the policy applied when a message cannot be found. |
Field Detail |
public static final String RETURN_NULL_MESSAGE_NOT_FOUND_POLICY
null
as result of
the pull method.
public static final String EXCEPTION_MESSAGE_NOT_FOUND_POLICY
KeyNotFoundException
exception.
Method Detail |
public String getMessageNotFoundPolicy()
public void setMessageNotFoundPolicy(String policy)
policy
- the policy applied when a message cannot be found.public String getKeyName()
public void setKeyName(String name)
name
- the name to which the key is mapped in the Pull context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |