|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamConnection
The StreamConnection interface allows you to send and receive data from a Destination in using standard java InputStream and OutputStream objects. It's best use case is to send and receive large amounts of data that would be to large to hold in a single JMS message.
Method Summary | |
---|---|
java.io.InputStream |
createDurableInputStream(javax.jms.Topic dest,
java.lang.String name)
|
java.io.InputStream |
createDurableInputStream(javax.jms.Topic dest,
java.lang.String name,
java.lang.String messageSelector)
|
java.io.InputStream |
createDurableInputStream(javax.jms.Topic dest,
java.lang.String name,
java.lang.String messageSelector,
boolean noLocal)
|
java.io.InputStream |
createInputStream(javax.jms.Destination dest)
|
java.io.InputStream |
createInputStream(javax.jms.Destination dest,
java.lang.String messageSelector)
|
java.io.InputStream |
createInputStream(javax.jms.Destination dest,
java.lang.String messageSelector,
boolean noLocal)
|
java.io.OutputStream |
createOutputStream(javax.jms.Destination dest)
|
java.io.OutputStream |
createOutputStream(javax.jms.Destination dest,
java.util.Map streamProperties,
int deliveryMode,
int priority,
long timeToLive)
|
void |
unsubscribe(java.lang.String name)
Unsubscribes a durable subscription that has been created by a client. |
Methods inherited from interface javax.jms.Connection |
---|
close, createConnectionConsumer, createDurableConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop |
Method Detail |
---|
java.io.InputStream createInputStream(javax.jms.Destination dest) throws javax.jms.JMSException
javax.jms.JMSException
java.io.InputStream createInputStream(javax.jms.Destination dest, java.lang.String messageSelector) throws javax.jms.JMSException
javax.jms.JMSException
java.io.InputStream createInputStream(javax.jms.Destination dest, java.lang.String messageSelector, boolean noLocal) throws javax.jms.JMSException
javax.jms.JMSException
java.io.InputStream createDurableInputStream(javax.jms.Topic dest, java.lang.String name) throws javax.jms.JMSException
javax.jms.JMSException
java.io.InputStream createDurableInputStream(javax.jms.Topic dest, java.lang.String name, java.lang.String messageSelector) throws javax.jms.JMSException
javax.jms.JMSException
java.io.InputStream createDurableInputStream(javax.jms.Topic dest, java.lang.String name, java.lang.String messageSelector, boolean noLocal) throws javax.jms.JMSException
javax.jms.JMSException
java.io.OutputStream createOutputStream(javax.jms.Destination dest) throws javax.jms.JMSException
javax.jms.JMSException
java.io.OutputStream createOutputStream(javax.jms.Destination dest, java.util.Map streamProperties, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
javax.jms.JMSException
void unsubscribe(java.lang.String name) throws javax.jms.JMSException
This method deletes the state being maintained on behalf of the subscriber by its provider.
It is erroneous for a client to delete a durable subscription while there
is an active MessageConsumer
or TopicSubscriber
for the subscription, or while a consumed message is part of a pending
transaction or has not been acknowledged in the session.
name
- the name used to identify this subscription
javax.jms.JMSException
- if the session fails to unsubscribe to the durable
subscription due to some internal error.
javax.jms.InvalidDestinationException
- if an invalid subscription name is specified.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |