@Deprecated public class ActiveMQInputStream extends java.io.InputStream implements ActiveMQDispatcher
| Modifier and Type | Class and Description |
|---|---|
class |
ActiveMQInputStream.ReadTimeoutException
Deprecated.
Exception which should get thrown if the first chunk of the stream could not read within the configured timeout
|
| Constructor and Description |
|---|
ActiveMQInputStream(ActiveMQConnection connection,
ConsumerId consumerId,
ActiveMQDestination dest,
java.lang.String selector,
boolean noLocal,
java.lang.String name,
int prefetch,
long timeout)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkClosed()
Deprecated.
|
void |
close()
Deprecated.
|
void |
dispatch(MessageDispatch md)
Deprecated.
|
void |
dispose()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.Object> |
getJMSProperties()
Deprecated.
Return the JMS Properties which where used to send the InputStream
|
int |
read()
Deprecated.
|
int |
read(byte[] b,
int off,
int len)
Deprecated.
|
ActiveMQMessage |
receive()
Deprecated.
This method allows the client to receive the Stream data as unaltered ActiveMQMessage
object which is how the split stream data is sent.
|
java.lang.String |
toString()
Deprecated.
|
public ActiveMQInputStream(ActiveMQConnection connection, ConsumerId consumerId, ActiveMQDestination dest, java.lang.String selector, boolean noLocal, java.lang.String name, int prefetch, long timeout) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void dispose()
public java.util.Map<java.lang.String,java.lang.Object> getJMSProperties()
throws java.io.IOException
java.io.IOExceptionpublic ActiveMQMessage receive() throws javax.jms.JMSException, ActiveMQInputStream.ReadTimeoutException
javax.jms.JMSExceptionActiveMQInputStream.ReadTimeoutExceptionprotected void checkClosed()
throws javax.jms.IllegalStateException
javax.jms.IllegalStateExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamActiveMQInputStream.ReadTimeoutException - if a timeout was given and the first chunk of the message could not read within the timeoutjava.io.IOExceptionInputStream.read()public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamActiveMQInputStream.ReadTimeoutException - if a timeout was given and the first chunk of the message could not read within the timeoutjava.io.IOExceptionInputStream.read(byte[], int, int)public void dispatch(MessageDispatch md)
dispatch in interface ActiveMQDispatcherpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.