com.github.smokestack.jms
Class MockMessageProducer

java.lang.Object
  extended by com.github.smokestack.jms.MockMessageProducer
All Implemented Interfaces:
MessageProducer

public class MockMessageProducer
extends Object
implements MessageProducer

Author:
gliptak

Nested Class Summary
static class MockMessageProducer.MessageProducerState
           
 
Field Summary
protected  int deliveryMode
           
protected  Destination destination
           
protected  boolean disableMessageID
           
protected  boolean disableMessageTimestamp
           
protected  MockMessageProducer.MessageProducerState mockState
           
protected  int priority
           
protected  long timeToLive
           
 
Constructor Summary
MockMessageProducer(Destination destination)
           
 
Method Summary
 void _close()
           
 int _getDeliveryMode()
           
 Destination _getDestination()
           
 boolean _getDisableMessageID()
           
 boolean _getDisableMessageTimestamp()
           
 int _getPriority()
           
 long _getTimeToLive()
           
 void _send(Destination destination, Message message)
           
 void _send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive)
           
 void _send(Message message)
           
 void _send(Message message, int deliveryMode, int priority, long timeToLive)
           
 void _setDeliveryMode(int deliveryMode)
           
 void _setDisableMessageID(boolean disableMessageID)
           
 void _setDisableMessageTimestamp(boolean disableMessageTimestamp)
           
 void _setPriority(int priority)
           
 void _setTimeToLive(long timeToLive)
           
 void close()
           
 int getDeliveryMode()
           
 Destination getDestination()
           
 boolean getDisableMessageID()
           
 boolean getDisableMessageTimestamp()
           
 MockMessageProducer.MessageProducerState getMockState()
           
 int getPriority()
           
 long getTimeToLive()
           
 void send(Destination destination, Message message)
           
 void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive)
           
 void send(Message message)
           
 void send(Message message, int deliveryMode, int priority, long timeToLive)
           
 void setDeliveryMode(int deliveryMode)
           
 void setDisableMessageID(boolean disableMessageID)
           
 void setDisableMessageTimestamp(boolean disableMessageTimestamp)
           
 void setPriority(int priority)
           
 void setTimeToLive(long timeToLive)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

destination

protected Destination destination

mockState

protected MockMessageProducer.MessageProducerState mockState

deliveryMode

protected int deliveryMode

disableMessageID

protected boolean disableMessageID

disableMessageTimestamp

protected boolean disableMessageTimestamp

priority

protected int priority

timeToLive

protected long timeToLive
Constructor Detail

MockMessageProducer

public MockMessageProducer(Destination destination)
Method Detail

close

public void close()
           throws JMSException
Specified by:
close in interface MessageProducer
Throws:
JMSException

_close

public void _close()
            throws JMSException
Throws:
JMSException

getDeliveryMode

public int getDeliveryMode()
                    throws JMSException
Specified by:
getDeliveryMode in interface MessageProducer
Throws:
JMSException

_getDeliveryMode

public int _getDeliveryMode()
                     throws JMSException
Throws:
JMSException

getDestination

public Destination getDestination()
                           throws JMSException
Specified by:
getDestination in interface MessageProducer
Throws:
JMSException

_getDestination

public Destination _getDestination()
                            throws JMSException
Throws:
JMSException

getDisableMessageID

public boolean getDisableMessageID()
                            throws JMSException
Specified by:
getDisableMessageID in interface MessageProducer
Throws:
JMSException

_getDisableMessageID

public boolean _getDisableMessageID()
                             throws JMSException
Throws:
JMSException

getDisableMessageTimestamp

public boolean getDisableMessageTimestamp()
                                   throws JMSException
Specified by:
getDisableMessageTimestamp in interface MessageProducer
Throws:
JMSException

_getDisableMessageTimestamp

public boolean _getDisableMessageTimestamp()
                                    throws JMSException
Throws:
JMSException

getPriority

public int getPriority()
                throws JMSException
Specified by:
getPriority in interface MessageProducer
Throws:
JMSException

_getPriority

public int _getPriority()
                 throws JMSException
Throws:
JMSException

getTimeToLive

public long getTimeToLive()
                   throws JMSException
Specified by:
getTimeToLive in interface MessageProducer
Throws:
JMSException

_getTimeToLive

public long _getTimeToLive()
                    throws JMSException
Throws:
JMSException

send

public void send(Message message)
          throws JMSException
Specified by:
send in interface MessageProducer
Throws:
JMSException

_send

public void _send(Message message)
           throws JMSException
Throws:
JMSException

send

public void send(Destination destination,
                 Message message)
          throws JMSException
Specified by:
send in interface MessageProducer
Throws:
JMSException

_send

public void _send(Destination destination,
                  Message message)
           throws JMSException
Throws:
JMSException

send

public void send(Message message,
                 int deliveryMode,
                 int priority,
                 long timeToLive)
          throws JMSException
Specified by:
send in interface MessageProducer
Throws:
JMSException

_send

public void _send(Message message,
                  int deliveryMode,
                  int priority,
                  long timeToLive)
           throws JMSException
Throws:
JMSException

send

public void send(Destination destination,
                 Message message,
                 int deliveryMode,
                 int priority,
                 long timeToLive)
          throws JMSException
Specified by:
send in interface MessageProducer
Throws:
JMSException

_send

public void _send(Destination destination,
                  Message message,
                  int deliveryMode,
                  int priority,
                  long timeToLive)
           throws JMSException
Throws:
JMSException

setDeliveryMode

public void setDeliveryMode(int deliveryMode)
                     throws JMSException
Specified by:
setDeliveryMode in interface MessageProducer
Throws:
JMSException

_setDeliveryMode

public void _setDeliveryMode(int deliveryMode)
                      throws JMSException
Throws:
JMSException

setDisableMessageID

public void setDisableMessageID(boolean disableMessageID)
                         throws JMSException
Specified by:
setDisableMessageID in interface MessageProducer
Throws:
JMSException

_setDisableMessageID

public void _setDisableMessageID(boolean disableMessageID)
                          throws JMSException
Throws:
JMSException

setDisableMessageTimestamp

public void setDisableMessageTimestamp(boolean disableMessageTimestamp)
                                throws JMSException
Specified by:
setDisableMessageTimestamp in interface MessageProducer
Throws:
JMSException

_setDisableMessageTimestamp

public void _setDisableMessageTimestamp(boolean disableMessageTimestamp)
                                 throws JMSException
Throws:
JMSException

setPriority

public void setPriority(int priority)
                 throws JMSException
Specified by:
setPriority in interface MessageProducer
Throws:
JMSException

_setPriority

public void _setPriority(int priority)
                  throws JMSException
Throws:
JMSException

setTimeToLive

public void setTimeToLive(long timeToLive)
                   throws JMSException
Specified by:
setTimeToLive in interface MessageProducer
Throws:
JMSException

_setTimeToLive

public void _setTimeToLive(long timeToLive)
                    throws JMSException
Throws:
JMSException

getMockState

public MockMessageProducer.MessageProducerState getMockState()
Returns:
the mockState

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 Smokestack. All Rights Reserved.