public class SimpleFileSender extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
private static int |
DEFAULT_MESSAGE_SIZE |
private int |
messageSize |
private RabbitQueue |
queue |
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleFileSender(RabbitQueue queue) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static SimpleFileSender |
create(RabbitQueueFactory factory,
String queueName) |
void |
setMessageSize(int messageSize) |
void |
streamData(InputStream is,
String name) |
private static final int DEFAULT_MESSAGE_SIZE
private RabbitQueue queue
private int messageSize
protected SimpleFileSender(RabbitQueue queue)
public static SimpleFileSender create(RabbitQueueFactory factory, String queueName) throws IOException
IOExceptionpublic void streamData(InputStream is, String name) throws IOException
IOExceptionpublic void setMessageSize(int messageSize)
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2017–2018. All rights reserved.