List of all members.
Public Member Functions |
| | DefaultPublisherImpl () throws MOMException |
| | DefaultPublisherImpl (String username, String password, String brokerList, Boolean loadBalancing, Boolean sequential, Boolean selectorAtBroker) throws MOMException |
| boolean | isClosed () |
| void | setExceptionListener (cern.cmw.mom.pubsub.ExceptionListener listener) |
| void | close () |
| BytesMessage | createBytesMessage () throws JMSException |
| MapMessage | createMapMessage () throws JMSException |
| Message | createMessage () throws JMSException |
| ObjectMessage | createObjectMessage () throws JMSException |
| StreamMessage | createStreamMessage () throws JMSException |
| TextMessage | createTextMessage () throws JMSException |
| void | onException (JMSException ex) |
| void | open () throws MOMException |
| void | publish (String topic, Message message) throws JMSException, NamingException |
| void | publish (String topic, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException, NamingException |
Protected Member Functions |
| void | finalize () throws Throwable |
Static Package Attributes |
| static Category | cat = Category.getInstance(DefaultPublisherImpl.class.getName()) |
Detailed Description
Implementation class.
- Version:
- 1.0 23 Jan 2001
- Author:
- Controls Middleware Project
- See also:
- Publisher
Constructor & Destructor Documentation
| cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.DefaultPublisherImpl |
( |
|
) |
throws MOMException |
| cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.DefaultPublisherImpl |
( |
String |
username, |
|
|
String |
password, |
|
|
String |
brokerList, |
|
|
Boolean |
loadBalancing, |
|
|
Boolean |
sequential, |
|
|
Boolean |
selectorAtBroker | |
|
) |
| | throws MOMException |
Constructor DefaultPublisherImpl
- Parameters:
-
| username | the user name |
| password | the password |
| brokerList | the coma separated broker URLs list (in the form [protocol://]hostname[:port]) |
| loadBalancing | if true, indicates that the client is willing to have a connect request re-directed to another broker within a cluster |
| sequential | if true, the broker list will be scanned sequentially |
| selectorAtBroker | if true, selectors will be evaluated on the broker side |
- Exceptions:
-
References cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.open().
Member Function Documentation
| void cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.close |
( |
|
) |
|
| BytesMessage cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.createBytesMessage |
( |
|
) |
throws JMSException |
Method createBytesMessage
- Returns:
- BytesMessage
- Exceptions:
-
| MapMessage cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.createMapMessage |
( |
|
) |
throws JMSException |
Method createMapMessage
- Returns:
- MapMessage
- Exceptions:
-
| Message cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.createMessage |
( |
|
) |
throws JMSException |
Method createMessage
- Returns:
- Message
- Exceptions:
-
| ObjectMessage cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.createObjectMessage |
( |
|
) |
throws JMSException |
Method createObjectMessage
- Returns:
- ObjectMessage
- Exceptions:
-
| StreamMessage cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.createStreamMessage |
( |
|
) |
throws JMSException |
Method createStreamMessage
- Returns:
- StreamMessage
- Exceptions:
-
| TextMessage cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.createTextMessage |
( |
|
) |
throws JMSException |
Method createTextMessage
- Returns:
- TextMessage
- Exceptions:
-
| void cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.finalize |
( |
|
) |
throws Throwable [protected] |
| boolean cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.isClosed |
( |
|
) |
|
Method isClosed
- Returns:
- Topic
| void cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.onException |
( |
JMSException |
ex |
) |
|
| void cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.open |
( |
|
) |
throws MOMException |
| void cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.publish |
( |
String |
topic, |
|
|
Message |
message | |
|
) |
| | throws JMSException, NamingException |
Method publish
- Parameters:
-
- Exceptions:
-
| JMSException | |
| NamingException | |
| void cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.publish |
( |
String |
topic, |
|
|
Message |
message, |
|
|
int |
deliveryMode, |
|
|
int |
priority, |
|
|
long |
timeToLive | |
|
) |
| | throws JMSException, NamingException |
Publish a message to the given topic.
- Parameters:
-
| topic | The String representation of the topic |
| message | The Message object to publish |
| deliveryMode | The Message persistence |
| priority | The Message priority |
| timeToLive | The Message time to live |
- Exceptions:
-
| JMSException | if JMS fails to publish the message due to some internal JMS error. |
| NamingException | if there is a violation in the namespace policy. |
References cern.cmw.mom.pubsub.impl.DefaultPublisherImpl.cat.
Method setExceptionListener
- Parameters:
-
Member Data Documentation
The documentation for this class was generated from the following file: