public class DefaultOutputCollector extends Object implements OutputCollector, Observer<OutputContext>
| Constructor and Description |
|---|
DefaultOutputCollector(org.vertx.java.core.Vertx vertx) |
DefaultOutputCollector(org.vertx.java.core.Vertx vertx,
OutputContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream.
|
void |
close(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Closes the stream.
|
OutputCollector |
open()
Opens the stream.
|
OutputCollector |
open(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Opens the stream.
|
OutputPort |
port(String name)
Returns an output port.
|
Collection<OutputPort> |
ports()
Returns a collection of output ports.
|
void |
update(OutputContext update) |
public DefaultOutputCollector(org.vertx.java.core.Vertx vertx)
public DefaultOutputCollector(org.vertx.java.core.Vertx vertx,
OutputContext context)
public Collection<OutputPort> ports()
OutputCollectorports in interface OutputCollectorpublic OutputPort port(String name)
OutputCollectorIf the port doesn't already exist then the input collector will lazily create the port. Ports can be referenced prior to the output event starting up, and once the output starts ports will be properly configured.
port in interface IOCollector<OutputCollector>port in interface OutputCollectorname - The name of the port to load.public void update(OutputContext update)
update in interface Observer<OutputContext>public OutputCollector open()
Openableopen in interface Openable<OutputCollector>public OutputCollector open(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Openableopen in interface Openable<OutputCollector>doneHandler - An asynchronous handler to be called once complete.public void close()
Closeableclose in interface Closeable<OutputCollector>public void close(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Closeableclose in interface Closeable<OutputCollector>doneHandler - An asynchronous handler to be called once complete.Copyright © 2013-2014. All Rights Reserved.