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