Closeable, AutoCloseablepublic class SimpleFileSender extends Object implements Closeable
| Modifier and Type | Field | Description |
|---|---|---|
private static int |
DEFAULT_MESSAGE_SIZE |
|
private int |
messageSize |
|
private RabbitQueue |
queue |
| Modifier | Constructor | Description |
|---|---|---|
protected |
SimpleFileSender(RabbitQueue queue) |
| Modifier and Type | Method | 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 AutoCloseableclose in interface CloseableCopyright © 2017. All rights reserved.