org.apache.activemq
Class ActiveMQOutputStream
java.lang.Object
java.io.OutputStream
org.apache.activemq.ActiveMQOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, Disposable
public class ActiveMQOutputStream
- extends java.io.OutputStream
- implements Disposable
Field Summary |
static java.lang.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
|
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 |
count
protected int count
AMQ_STREAM_CHUNK_SIZE
public static final java.lang.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,
java.util.Map<java.lang.String,java.lang.Object> properties,
int deliveryMode,
int priority,
long timeToLive)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.OutputStream
- Throws:
java.io.IOException
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
write
public void write(int b)
throws java.io.IOException
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in interface java.io.Flushable
- Overrides:
flush
in class java.io.OutputStream
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isAlwaysSyncSend
public boolean isAlwaysSyncSend()
setAlwaysSyncSend
public void setAlwaysSyncSend(boolean alwaysSyncSend)
Copyright © 2005-2015. All Rights Reserved.