public class DefaultInputCollector extends Object implements InputCollector, Observer<InputContext>
| Constructor and Description |
|---|
DefaultInputCollector(org.vertx.java.core.Vertx vertx) |
DefaultInputCollector(org.vertx.java.core.Vertx vertx,
InputContext 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.
|
InputCollector |
open()
Opens the stream.
|
InputCollector |
open(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Opens the stream.
|
InputPort |
port(String name)
Returns an input port.
|
Collection<InputPort> |
ports()
Returns a collection of input ports.
|
void |
update(InputContext update) |
public DefaultInputCollector(org.vertx.java.core.Vertx vertx)
public DefaultInputCollector(org.vertx.java.core.Vertx vertx,
InputContext context)
public Collection<InputPort> ports()
InputCollectorports in interface InputCollectorpublic InputPort port(String name)
InputCollectorIf the port doesn't already exist then the input collector will lazily create the port. Ports can be referenced prior to the input event starting up, and once the input starts ports will be properly configured.
port in interface InputCollectorport in interface IOCollector<InputCollector>name - The name of the port to load.public void update(InputContext update)
update in interface Observer<InputContext>public InputCollector open()
Openableopen in interface Openable<InputCollector>public InputCollector open(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Openableopen in interface Openable<InputCollector>doneHandler - An asynchronous handler to be called once complete.public void close()
Closeableclose in interface Closeable<InputCollector>public void close(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Closeableclose in interface Closeable<InputCollector>doneHandler - An asynchronous handler to be called once complete.Copyright © 2013-2014. All Rights Reserved.