| java.lang.Object org.mockejb.jms.MockProducer
All known Subclasses: org.mockejb.jms.TopicPublisherImpl, org.mockejb.jms.QueueSenderImpl,
MockProducer | class MockProducer implements MessageProducer(Code) | | Sends message to destination.
author: Dimitar Gospodinov |
Method Summary | |
protected void | checkDestination(boolean unidentifiedDestinationCheck) Checks if there is or there is not destination specified for this producer.
Method is used in cases when UnsupportedOperationException
should be raised by a MessageProducer (for example
calling send(Message) when the producer has been created
without specifying a destination). | public void | close() Does nothing. | public int | getDeliveryMode() | public Destination | getDestination() Returns destination for this producer. | public boolean | getDisableMessageID() | public boolean | getDisableMessageTimestamp() | protected static synchronized int | getMessageId() Generates unique number used to create message Id. | public int | getPriority() | public long | getTimeToLive() | public void | send(Message msg) Sends message. | public void | send(Message msg, int deliveryMode, int priority, long timeToLive) Sends message with specified delivery mode, priority and time to live. | public void | send(Destination destination, Message msg) Sends message to destination. | public void | send(Destination destination, Message msg, int deliveryMode, int priority, long timeToLive) Sends message to destination, with specified delivery mode,
priority and time to live. | protected static void | sendMessage(MockDestination destination, Message msg, int deliveryMode, int priority, long timeToLive) Sends msg to destination using specified
delivery mode, priority and time to live. | public void | setDeliveryMode(int deliveryMode) | public void | setDisableMessageID(boolean arg0) Does nothing. | public void | setDisableMessageTimestamp(boolean arg0) Does nothing. | public void | setPriority(int priority) | public void | setTimeToLive(long timeToLive) |
MockProducer | MockProducer(MockDestination destination)(Code) | | Creates producer for the specified destination.
Parameters: destination - |
checkDestination | protected void checkDestination(boolean unidentifiedDestinationCheck)(Code) | | Checks if there is or there is not destination specified for this producer.
Method is used in cases when UnsupportedOperationException
should be raised by a MessageProducer (for example
calling send(Message) when the producer has been created
without specifying a destination).
Parameters: unidentifiedDestinationCheck - throws: UnsupportedOperationException - if unsupported operation is attempted |
close | public void close() throws JMSException(Code) | | Does nothing.
See Also: javax.jms.MessageProducer.close |
getDeliveryMode | public int getDeliveryMode() throws JMSException(Code) | | See Also: javax.jms.MessageProducer.getDeliveryMode |
getDestination | public Destination getDestination() throws JMSException(Code) | | Returns destination for this producer.
|
getDisableMessageID | public boolean getDisableMessageID() throws JMSException(Code) | | Always returns false
See Also: javax.jms.MessageProducer.getDisableMessageID |
getDisableMessageTimestamp | public boolean getDisableMessageTimestamp() throws JMSException(Code) | | Always returns false
See Also: javax.jms.MessageProducer.getDisableMessageTimestamp |
getMessageId | protected static synchronized int getMessageId()(Code) | | Generates unique number used to create message Id.
message Id |
getPriority | public int getPriority() throws JMSException(Code) | | See Also: javax.jms.MessageProducer.getPriority |
getTimeToLive | public long getTimeToLive() throws JMSException(Code) | | See Also: javax.jms.MessageProducer.getTimeToLive |
send | public void send(Message msg) throws JMSException(Code) | | Sends message.
Parameters: msg - |
send | public void send(Message msg, int deliveryMode, int priority, long timeToLive) throws JMSException(Code) | | Sends message with specified delivery mode, priority and time to live.
Parameters: msg - Parameters: deliveryMode - Parameters: priority - Parameters: timeToLive - |
send | public void send(Destination destination, Message msg) throws JMSException(Code) | | Sends message to destination.
|
send | public void send(Destination destination, Message msg, int deliveryMode, int priority, long timeToLive) throws JMSException(Code) | | Sends message to destination, with specified delivery mode,
priority and time to live.
|
sendMessage | protected static void sendMessage(MockDestination destination, Message msg, int deliveryMode, int priority, long timeToLive) throws JMSException(Code) | | Sends msg to destination using specified
delivery mode, priority and time to live.
Parameters: destination - Parameters: msg - Parameters: deliveryMode - Parameters: priority - Parameters: timeToLive - throws: JMSException - |
setDeliveryMode | public void setDeliveryMode(int deliveryMode) throws JMSException(Code) | | See Also: javax.jms.MessageProducer.setDeliveryMode(int) |
setDisableMessageID | public void setDisableMessageID(boolean arg0) throws JMSException(Code) | | Does nothing.
See Also: javax.jms.MessageProducer.setDisableMessageID(boolean) |
setDisableMessageTimestamp | public void setDisableMessageTimestamp(boolean arg0) throws JMSException(Code) | | Does nothing.
See Also: javax.jms.MessageProducer.setDisableMessageTimestamp(boolean) |
setPriority | public void setPriority(int priority) throws JMSException(Code) | | See Also: javax.jms.MessageProducer.setPriority(int) |
setTimeToLive | public void setTimeToLive(long timeToLive) throws JMSException(Code) | | See Also: javax.jms.MessageProducer.setTimeToLive(long) |
|
|