1 18 package org.apache.activemq; 19 20 import java.io.InputStream ; 21 import java.io.OutputStream ; 22 import java.util.Map ; 23 24 import javax.jms.Connection ; 25 import javax.jms.Destination ; 26 import javax.jms.InvalidDestinationException ; 27 import javax.jms.JMSException ; 28 import javax.jms.Topic ; 29 30 38 public interface StreamConnection extends Connection { 39 40 public InputStream createInputStream(Destination dest) throws JMSException ; 41 public InputStream createInputStream(Destination dest, String messageSelector) throws JMSException ; 42 public InputStream createInputStream(Destination dest, String messageSelector, boolean noLocal) throws JMSException ; 43 44 public InputStream createDurableInputStream(Topic dest, String name) throws JMSException ; 45 public InputStream createDurableInputStream(Topic dest, String name, String messageSelector) throws JMSException ; 46 public InputStream createDurableInputStream(Topic dest, String name, String messageSelector, boolean noLocal) throws JMSException ; 47 48 public OutputStream createOutputStream(Destination dest) throws JMSException ; 49 public OutputStream createOutputStream(Destination dest, Map streamProperties, int deliveryMode, 50 int priority, long timeToLive) throws JMSException ; 51 52 72 public void unsubscribe(String name) throws JMSException ; 73 } 74 | Popular Tags |