org.gcube.data.access.queueManager.impl
Class QueueProducer<T extends QueueItem>

java.lang.Object
  extended by org.gcube.data.access.queueManager.impl.QueueProducer<T>

public class QueueProducer<T extends QueueItem>
extends Object


Field Summary
protected  javax.jms.Connection connection
           
protected  javax.jms.MessageProducer publisher
           
protected  javax.jms.Session session
           
 
Constructor Summary
QueueProducer(javax.jms.MessageProducer publisher, javax.jms.Session session, javax.jms.Connection connection)
           
 
Method Summary
 void close()
           
 String send(T item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

publisher

protected javax.jms.MessageProducer publisher

session

protected javax.jms.Session session

connection

protected javax.jms.Connection connection
Constructor Detail

QueueProducer

public QueueProducer(javax.jms.MessageProducer publisher,
                     javax.jms.Session session,
                     javax.jms.Connection connection)
              throws javax.jms.JMSException
Throws:
javax.jms.JMSException
Method Detail

send

public String send(T item)
            throws javax.jms.JMSException
Throws:
javax.jms.JMSException

close

public void close()
           throws javax.jms.JMSException
Throws:
javax.jms.JMSException


Copyright © 2013. All Rights Reserved.