@Deprecated public class ActiveMQInputStream extends 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,
String selector,
boolean noLocal,
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.
|
Map<String,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.
|
String |
toString()
Deprecated.
|
available, mark, markSupported, read, reset, skippublic ActiveMQInputStream(ActiveMQConnection connection, ConsumerId consumerId, ActiveMQDestination dest, String selector, boolean noLocal, String name, int prefetch, long timeout) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void dispose()
public Map<String,Object> getJMSProperties() throws IOException
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 IOException
read in class InputStreamActiveMQInputStream.ReadTimeoutException - if a timeout was given and the first chunk of the message could not read within the timeoutIOExceptionInputStream.read()public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamActiveMQInputStream.ReadTimeoutException - if a timeout was given and the first chunk of the message could not read within the timeoutIOExceptionInputStream.read(byte[], int, int)public void dispatch(MessageDispatch md)
dispatch in interface ActiveMQDispatcherCopyright © 2005-2015 The Apache Software Foundation. All Rights Reserved.