|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jmsmq.MSMQQueue
Class that mapping a native implementation of a MSMQ queue object. Microsoft® Message Queuing Server. This class use JNI interfaces over the "jmsmq.dll" library. This library has to have visibility from the environment "PATH" variable of the execution of the application that use this project
| Method Summary | |
MSMQMessageEnumerator |
getMessageEnumerator()
Method that create a new message enumerator of the queue This method returns a new message enumerator associated to the queue. |
java.lang.String |
getQueueFormatName()
Method that returns the queue format name |
java.lang.String |
getQueueLabel()
Method that returns the queue label |
java.lang.String |
getQueueName()
Method that returns the queue name |
java.lang.String |
getQueuePathName()
Method that returns the queue path name |
MQ_QUEUE_TYPE |
getQueueType()
Method that returns the queue type |
MQ_XACT_TYPE |
getQueueXActType()
Method that returns the transactional type of the queue |
MSMQMessage |
peekMessage()
Method that read the first message in the queue |
MSMQMessage |
peekMessage(long timeOut)
Method that read the first message in the queue |
void |
purgeQueue()
Method that delete all message in the queue |
MSMQMessage |
readMessage()
Method that extract a message of the queue |
MSMQMessage |
readMessage(long timeOut)
Method that extract a message of the queue |
void |
sendMessage(MSMQMessage message)
Method that sends a message to the queue |
void |
setQueueLabel(java.lang.String newQueueLabel)
Method that sets the queue label |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.String getQueueFormatName()
public java.lang.String getQueueName()
public java.lang.String getQueuePathName()
throws MSMQException
MSMQException - Throw if an exception occurs retrieving the queue info
public java.lang.String getQueueLabel()
throws MSMQException
MSMQException - Throw if an exception occurs retrieving the queue info
public void setQueueLabel(java.lang.String newQueueLabel)
throws MSMQException,
MSMQMaxLenPropertyException
newQueueLabel - New queue label
MSMQException - Throw if an exception occurs setting the queue info
MSMQMaxLenPropertyException - Throw if an exception new queue label exceded the max size for queue label sizepublic MQ_QUEUE_TYPE getQueueType()
public MQ_XACT_TYPE getQueueXActType()
throws MSMQException
MSMQException - Throw if an exception occurs setting the queue info
public void purgeQueue()
throws MSMQException
MSMQException - Throw if an exception occurs purging the queue
public MSMQMessage readMessage()
throws MSMQException
MSMQException - Throw if an exception occurs reading the queue
MSMQEmptyQueueException - Throw if an exception occurs if the queue has no messages
public MSMQMessage readMessage(long timeOut)
throws MSMQException
timeOut - Read operation timeout
MSMQException - Throw if an exception occurs reading the queue
MSMQEmptyQueueException - Throw if an exception occurs if the queue has no messagespublic MSMQMessageEnumerator getMessageEnumerator()
getMessageEnumerator(), readMessage(),
peekMessage, sendMessage() or purgeQueue are invoked.
public MSMQMessage peekMessage()
throws MSMQException,
MSMQEmptyQueueException
MSMQException - Throw if an exception occurs reading the queue
MSMQEmptyQueueException - Throw if an exception occurs if the queue has no messages
public MSMQMessage peekMessage(long timeOut)
throws MSMQException,
MSMQEmptyQueueException
timeOut - Read operation timeout
MSMQException - Throw if an exception occurs reading the queue
MSMQEmptyQueueException - Throw if an exception occurs if the queue has no messages
public void sendMessage(MSMQMessage message)
throws MSMQException,
MSMQMaxLenPropertyException
message - Message to send
MSMQException - Throw if an exception occurs sending the message to the queue
MSMQMaxLenPropertyException - Throw if an exception occurs if the message label length excedeed the maximum label size
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||