Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

mobile.jmsapi
Class TopicSession  view TopicSession download TopicSession.java

java.lang.Object
  extended bymobile.jmsapi.Id_class
      extended bymobile.jmsapi.Session
          extended bymobile.jmsapi.TopicSession
All Implemented Interfaces:
mobile.bearer.http.Protocol

public class TopicSession
extends Session

class representinf a session of a connection with JMS provider in Pub-Sub mode


Field Summary
 
Fields inherited from class mobile.jmsapi.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED
 
Fields inherited from class mobile.jmsapi.Id_class
id
 
Fields inherited from interface mobile.bearer.http.Protocol
ACKNOWLEDGE_MESSAGE, CLOSE_CONNECTION, CLOSE_MESSAGE_CONSUMER, CLOSE_MESSAGE_PRODUCER, COMMIT, CREATE_CONNECTION, CREATE_DURABLE_CONSUMER, CREATE_DURABLE_TOPIC_SUBSCRIBER, CREATE_QUEUE_CONNECTION, CREATE_QUEUE_RECEIVER, CREATE_QUEUE_SENDER, CREATE_QUEUE_SESSION, CREATE_RECEIVER, CREATE_SENDER, CREATE_SESSION, CREATE_TEMPORARY_DESTINATION, CREATE_TEMPORARY_QUEUE, CREATE_TEMPORARY_TOPIC, CREATE_TOPIC_CONNECTION, CREATE_TOPIC_PUBLISHER, CREATE_TOPIC_SESSION, CREATE_TOPIC_SUBSCRIBER, DELETE_TEMPORARY_DESTINATION, DELETE_TEMPORARY_QUEUE, DELETE_TEMPORARY_TOPIC, EXC_INVALID_DESTINATION, EXC_NAMING, EXC_OTHER, EXC_RESOURCE_ALLOCATION, INT_LEN, LONG_LEN, LOOKUP, MAX_BYTES_LEN, PUBLISH_BYTES_MESSAGE, PUBLISH_TEXT_MESSAGE, QUEUE, RECEIVE_MESSAGE, RECEIVE_MESSAGE_FROM_QUEUE, RECEIVE_MESSAGE_FROM_TOPIC, RECEIVE_MESSAGE_TIMEOUT, REP_BYTES_MESSAGE, REP_BYTES_MESSAGE_FROM_QUEUE, REP_BYTES_MESSAGE_FROM_TOPIC, REP_CONNECTION, REP_CONNECTION_FACTORY, REP_DURABLE_TOPIC_SUBSCRIBER, REP_QUEUE, REP_QUEUE_CONNECTION, REP_QUEUE_CONNECTION_FACTORY, REP_QUEUE_RECEIVER, REP_QUEUE_SENDER, REP_QUEUE_SESSION, REP_RECEIVER, REP_SENDER, REP_SESSION, REP_TEMPORARY_DESTINATION, REP_TEMPORARY_QUEUE, REP_TEMPORARY_TOPIC, REP_TEXT_MESSAGE, REP_TEXT_MESSAGE_FROM_QUEUE, REP_TEXT_MESSAGE_FROM_TOPIC, REP_TOPIC, REP_TOPIC_CONNECTION, REP_TOPIC_CONNECTION_FACTORY, REP_TOPIC_PUBLISHER, REP_TOPIC_SESSION, REP_TOPIC_SUBSCRIBER, ROLLBACK, SEND_BYTES_MESSAGE, SEND_TEXT_MESSAGE, START_CONNECTION, STOP_CONNECTION, TEMPRORARY, TOPIC
 
Constructor Summary
TopicSession()
           
 
Method Summary
 TopicSubscriber createDurableSubscriber(Topic _topic, java.lang.String _name)
           
 TopicPublisher createTopicPublisher(Topic _dest)
           create new topic publisher of messages to specified Topic
 TopicSubscriber createTopicSubscriber(Topic _src)
           create new topic subscriber of messages from specified Topic
protected  Consumer newConsumer()
           create a new Topic Subscriber
protected  Producer newProducer()
           create a new Topic Publisher
protected  int TYPE_MASK()
          > bitmask
 
Methods inherited from class mobile.jmsapi.Session
commit, createBytesMessage, createConsumer, createProducer, createTextMessage, rollback
 
Methods inherited from class mobile.jmsapi.Id_class
getObject, log, request, request, request, request, request, request, request, strToBool, strToLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicSession

public TopicSession()
Method Detail

TYPE_MASK

protected int TYPE_MASK()
> bitmask

Specified by:
TYPE_MASK in class Id_class

newConsumer

protected Consumer newConsumer()

create a new Topic Subscriber

Specified by:
newConsumer in class Session

newProducer

protected Producer newProducer()

create a new Topic Publisher

Specified by:
newProducer in class Session

createTopicSubscriber

public TopicSubscriber createTopicSubscriber(Topic _src)
                                      throws JMSException

create new topic subscriber of messages from specified Topic


createTopicPublisher

public TopicPublisher createTopicPublisher(Topic _dest)
                                    throws JMSException

create new topic publisher of messages to specified Topic


createDurableSubscriber

public TopicSubscriber createDurableSubscriber(Topic _topic,
                                               java.lang.String _name)
                                        throws JMSException