org.jboss.jms.delegate
Interface SessionEndpoint

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

public interface SessionEndpoint
extends Closeable

Version:
$Revision: 3238 $ $Id: SessionEndpoint.java 3238 2007-10-21 23:29:00Z timfox $
Author:
Tim Fox, Ovidiu Feodorov, Clebert Suconic

Method Summary
 void acknowledgeDeliveries(java.util.List acks)
          Acknowledge a list of deliveries
 boolean 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, boolean autoFlowControl)
           
 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, java.lang.String oldSessionID)
          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

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

createBrowserDelegate

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

createQueue

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

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

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

Throws:
JMSException

acknowledgeDelivery

boolean acknowledgeDelivery(Ack ack)
                            throws JMSException
Acknowledge a delivery

Throws:
JMSException

cancelDeliveries

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

Throws:
JMSException

cancelDelivery

void cancelDelivery(Cancel cancel)
                    throws JMSException
Cancel a delivery

Parameters:
cancel -
Throws:
JMSException

addTemporaryDestination

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

Throws:
JMSException

deleteTemporaryDestination

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

Throws:
JMSException

unsubscribe

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

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

Parameters:
message - The message to send
Throws:
JMSException

recoverDeliveries

void recoverDeliveries(java.util.List createInfos,
                       java.lang.String oldSessionID)
                       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.