public class ActiveMQOutputStream extends java.io.OutputStream implements Disposable
| Modifier and Type | Field and Description |
|---|---|
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 |
| Constructor and Description |
|---|
ActiveMQOutputStream(ActiveMQConnection connection,
ProducerId producerId,
ActiveMQDestination destination,
java.util.Map<java.lang.String,java.lang.Object> properties,
int deliveryMode,
int priority,
long timeToLive) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
dispose() |
void |
flush() |
boolean |
isAddPropertiesOnFirstMsgOnly() |
boolean |
isAlwaysSyncSend() |
void |
setAddPropertiesOnFirstMsgOnly(boolean propertiesOnFirstMsgOnly) |
void |
setAlwaysSyncSend(boolean alwaysSyncSend) |
java.lang.String |
toString() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected int count
public static final java.lang.String AMQ_STREAM_CHUNK_SIZE
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
javax.jms.JMSExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void dispose()
dispose in interface Disposablepublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isAlwaysSyncSend()
public void setAlwaysSyncSend(boolean alwaysSyncSend)
public boolean isAddPropertiesOnFirstMsgOnly()
public void setAddPropertiesOnFirstMsgOnly(boolean propertiesOnFirstMsgOnly)
Copyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.