public class FileSender extends Object
The file sender uses an output group to send a file to target component(s). Since Vertigo guarantees message ordering, the file can be sent asynchronously rather than waiting for replies from the target components. Once the entire file has been sent the group will be closed.
You should use a FileReceiver to receive files on an input port.
| Constructor and Description |
|---|
FileSender(Output<?> output) |
| Modifier and Type | Method and Description |
|---|---|
FileSender |
sendFile(org.vertx.java.core.file.AsyncFile file)
Sends a file on the output port.
|
FileSender |
sendFile(org.vertx.java.core.file.AsyncFile file,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Sends a file on the output port.
|
FileSender |
sendFile(String filePath)
Sends a file on the output port.
|
FileSender |
sendFile(String filePath,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Sends a file on the output port.
|
public FileSender(Output<?> output)
public FileSender sendFile(org.vertx.java.core.file.AsyncFile file)
file - The file to send.public FileSender sendFile(org.vertx.java.core.file.AsyncFile file, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
file - The file to send.doneHandler - An asynchronous handler to be called once the file has been sent.public FileSender sendFile(String filePath)
filePath - The path to the file to send.public FileSender sendFile(String filePath, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
filePath - The path to the file to send.doneHandler - An asynchronous handler to be called once the file has been sent.Copyright © 2013-2014. All Rights Reserved.