public class DefaultInputContext extends BaseContext<T> implements InputContext
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultInputContext.Builder
Input context builder.
|
| Modifier and Type | Field and Description |
|---|---|
protected Collection<DefaultOutputPortContext> |
streams |
address, observers, version| Constructor and Description |
|---|
DefaultInputContext() |
| Modifier and Type | Method and Description |
|---|---|
String |
address()
Returns the context address.
|
static InputContext |
fromJson(org.vertx.java.core.json.JsonObject context)
Creates a new input context from JSON.
|
DefaultInstanceContext |
instance()
Returns the parent instance context.
|
void |
notify(InputContext update)
Notifies all observers of an update.
|
Collection<InputPortContext> |
ports()
Returns the input's port contexts.
|
T |
setInstanceContext(DefaultInstanceContext instance)
Sets the input parent.
|
static org.vertx.java.core.json.JsonObject |
toJson(DefaultInputContext context)
Serializes an input context to JSON.
|
copy, equals, hashCode, registerObserver, toString, unregisterObserverclone, finalize, getClass, notify, notifyAll, wait, wait, waitregisterObserver, unregisterObserverprotected Collection<DefaultOutputPortContext> streams
public static InputContext fromJson(org.vertx.java.core.json.JsonObject context)
context - A JSON representation of the input context.MalformedContextException - If the JSON context is malformed.public static org.vertx.java.core.json.JsonObject toJson(DefaultInputContext context)
context - The input context to serialize.public Collection<InputPortContext> ports()
InputContextports in interface InputContextpublic String address()
Contextaddress in interface Context<InputContext>public void notify(InputContext update)
Observablenotify in interface Observable<InputContext>notify in class BaseContext<InputContext>update - The updated object.public T setInstanceContext(DefaultInstanceContext instance)
public DefaultInstanceContext instance()
Copyright © 2013-2014. All Rights Reserved.