org.apache.activemq
Class ActiveMQOutputStream
java.lang.Object
java.io.OutputStream
org.apache.activemq.ActiveMQOutputStream
- All Implemented Interfaces:
- Closeable, Flushable, Disposable
public class ActiveMQOutputStream
- extends OutputStream
- implements Disposable
|
Field Summary |
static String |
AMQ_STREAM_CHUNK_SIZE
JMS Property which is used to specify the size (in kb) which is used as chunk size when splitting the stream. |
protected int |
count
|
count
protected int count
AMQ_STREAM_CHUNK_SIZE
public static final String AMQ_STREAM_CHUNK_SIZE
- JMS Property which is used to specify the size (in kb) which is used as chunk size when splitting the stream. Default is 64kb
- See Also:
- Constant Field Values
ActiveMQOutputStream
public ActiveMQOutputStream(ActiveMQConnection connection,
ProducerId producerId,
ActiveMQDestination destination,
Map<String,Object> properties,
int deliveryMode,
int priority,
long timeToLive)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class OutputStream
- Throws:
IOException
dispose
public void dispose()
- Specified by:
dispose in interface Disposable
write
public void write(int b)
throws IOException
- Specified by:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush in interface Flushable- Overrides:
flush in class OutputStream
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
isAlwaysSyncSend
public boolean isAlwaysSyncSend()
setAlwaysSyncSend
public void setAlwaysSyncSend(boolean alwaysSyncSend)
isAddPropertiesOnFirstMsgOnly
public boolean isAddPropertiesOnFirstMsgOnly()
setAddPropertiesOnFirstMsgOnly
public void setAddPropertiesOnFirstMsgOnly(boolean propertiesOnFirstMsgOnly)
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.