|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jmscts.core.MessagingBehaviour
Determines the behaviour for sending and receiving messages
DeliveryType
,
TestContext
Constructor Summary | |
MessagingBehaviour()
Construct a new instance, with default values |
|
MessagingBehaviour(DeliveryType type)
Construct a new instance, specifying the delivery type. |
|
MessagingBehaviour(MessagingBehaviour behaviour)
Construct a new instance, copying from an existing behaviour |
Method Summary | |
boolean |
getAdministered()
Determines if destinations are administered or temporary |
int |
getDeliveryMode()
Get the message delivery mode |
boolean |
getDurable()
Returns true if topic subscribers are durable. |
int |
getPriority()
Get the message priority used when sending messages |
ReceiptType |
getReceiptType()
Returns the message receipt behaviour |
long |
getTimeout()
Get the time to wait when listening or receiving messages |
void |
setAdministered(boolean type)
Set the destination type (administered/temporary) |
void |
setDeliveryMode(int mode)
Set the message delivery mode. |
void |
setDurable(boolean durable)
Set the topic subscriber behaviour |
void |
setPriority(int priority)
Set the priority of messages. |
void |
setReceiptType(ReceiptType receipt)
Set the message receipt behaviour |
void |
setTimeout(long timeout)
Set the time to wait when listening or receiving messages, before timing out |
java.lang.String |
toString()
Returns a string representation of the messaging behaviour |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MessagingBehaviour()
public MessagingBehaviour(DeliveryType type)
type
- the type of delivery when sending and receiving messagespublic MessagingBehaviour(MessagingBehaviour behaviour)
behaviour
- behaviour the behaviour to copyMethod Detail |
public void setDeliveryMode(int mode)
mode
- the message delivery mode when sending messagespublic int getDeliveryMode()
public void setAdministered(boolean type)
type
- if true, destinations are administeredpublic boolean getAdministered()
true
if destinations are administered,
false
if they are temporary.public void setReceiptType(ReceiptType receipt)
receipt
- the message receipt behaviourpublic ReceiptType getReceiptType()
null
public void setDurable(boolean durable)
durable
- if true topic subscribers are durablepublic boolean getDurable()
public void setPriority(int priority)
priority
- the priority set on a message when it is sentpublic int getPriority()
public void setTimeout(long timeout)
timeout
- the time to wait, in millisecondspublic long getTimeout()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |