org.apache.activemq
Class ActiveMQOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by 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
           
 
Constructor Summary
ActiveMQOutputStream(ActiveMQConnection connection, ProducerId producerId, ActiveMQDestination destination, Map<String,Object> properties, int deliveryMode, int priority, long timeToLive)
           
 
Method Summary
 void close()
           
 void dispose()
           
 void flush()
           
 boolean isAddPropertiesOnFirstMsgOnly()
           
 boolean isAlwaysSyncSend()
           
 void setAddPropertiesOnFirstMsgOnly(boolean propertiesOnFirstMsgOnly)
           
 void setAlwaysSyncSend(boolean alwaysSyncSend)
           
 String toString()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ActiveMQOutputStream

public ActiveMQOutputStream(ActiveMQConnection connection,
                            ProducerId producerId,
                            ActiveMQDestination destination,
                            Map<String,Object> properties,
                            int deliveryMode,
                            int priority,
                            long timeToLive)
                     throws JMSException
Throws:
JMSException
Method Detail

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.