org.jboss.jms.delegate
Interface SessionEndpoint

All Superinterfaces:
Closeable
All Known Subinterfaces:
SessionDelegate
All Known Implementing Classes:
ClientSessionDelegate, ServerSessionEndpoint, SessionAdvised

public interface SessionEndpoint
extends Closeable

Version:
$Revision: 2684 $ $Id: SessionEndpoint.java 2684 2007-05-15 07:31:30Z timfox $
Author:
Tim Fox, Ovidiu Feodorov, Clebert Suconic

Method Summary
 void acknowledgeDeliveries(java.util.List acks)
          Acknowledge a list of deliveries
 void acknowledgeDelivery(Ack ack)
          Acknowledge a delivery
 void addTemporaryDestination(JBossDestination destination)
          Add a temporary destination.
 void cancelDeliveries(java.util.List cancels)
          Cancel a list of deliveries.
 void cancelDelivery(Cancel cancel)
          Cancel a delivery
 BrowserDelegate createBrowserDelegate(JBossDestination queue, java.lang.String messageSelector)
           
 ConsumerDelegate createConsumerDelegate(JBossDestination destination, java.lang.String selector, boolean noLocal, java.lang.String subscriptionName, boolean connectionConsumer)
           
 JBossQueue createQueue(java.lang.String queueName)
          Creates a queue identity given a Queue name.
 JBossTopic createTopic(java.lang.String topicName)
          Creates a topic identity given a Queue name.
 void deleteTemporaryDestination(JBossDestination destination)
          Delete a temporary destination
 void recoverDeliveries(java.util.List createInfos)
          Send delivery info to the server so the delivery lists can be repopulated.
 void send(JBossMessage message, boolean checkForDuplicates)
          Send a message
 void unsubscribe(java.lang.String subscriptionName)
          Unsubscribe the client from the durable subscription specified by subscriptionName
 
Methods inherited from interface org.jboss.jms.client.Closeable
close, closing
 

Method Detail

createConsumerDelegate

public ConsumerDelegate createConsumerDelegate(JBossDestination destination,
                                               java.lang.String selector,
                                               boolean noLocal,
                                               java.lang.String subscriptionName,
                                               boolean connectionConsumer)
                                        throws JMSException
Throws:
JMSException

createBrowserDelegate

public BrowserDelegate createBrowserDelegate(JBossDestination queue,
                                             java.lang.String messageSelector)
                                      throws JMSException
Throws:
JMSException

createQueue

public JBossQueue createQueue(java.lang.String queueName)
                       throws JMSException
Creates a queue identity given a Queue name. Does NOT create the physical queue. The physical creation of queues is an administrative task and is not to be initiated by the JMS API, with the exception of temporary queues.

Throws:
JMSException

createTopic

public JBossTopic createTopic(java.lang.String topicName)
                       throws JMSException
Creates a topic identity given a Queue name. Does NOT create the physical topic. The physical creation of topics is an administrative task and is not to be initiated by the JMS API, with the exception of temporary topics.

Throws:
JMSException

acknowledgeDeliveries

public void acknowledgeDeliveries(java.util.List acks)
                           throws JMSException
Acknowledge a list of deliveries

Throws:
JMSException

acknowledgeDelivery

public void acknowledgeDelivery(Ack ack)
                         throws JMSException
Acknowledge a delivery

Throws:
JMSException

cancelDeliveries

public void cancelDeliveries(java.util.List cancels)
                      throws JMSException
Cancel a list of deliveries.

Throws:
JMSException

cancelDelivery

public void cancelDelivery(Cancel cancel)
                    throws JMSException
Cancel a delivery

Parameters:
cancel -
Throws:
JMSException

addTemporaryDestination

public void addTemporaryDestination(JBossDestination destination)
                             throws JMSException
Add a temporary destination.

Throws:
JMSException

deleteTemporaryDestination

public void deleteTemporaryDestination(JBossDestination destination)
                                throws JMSException
Delete a temporary destination

Throws:
JMSException

unsubscribe

public void unsubscribe(java.lang.String subscriptionName)
                 throws JMSException
Unsubscribe the client from the durable subscription specified by subscriptionName

Parameters:
subscriptionName - the Name of the durable subscription to unsubscribe from
Throws:
JMSException - if the unsubscribe fails

send

public void send(JBossMessage message,
                 boolean checkForDuplicates)
          throws JMSException
Send a message

Parameters:
message - The message to send
Throws:
JMSException

recoverDeliveries

public void recoverDeliveries(java.util.List createInfos)
                       throws JMSException
Send delivery info to the server so the delivery lists can be repopulated. Used only in failover.

Throws:
JMSException


Copyright © 2006 JBoss Inc. All Rights Reserved.