public class AbstractBuilder<T> extends Object
<T>
object, either synchronously using
build()
or asynchronously using buildAsync(org.kurento.client.Continuation<T>)
Modifier and Type | Field and Description |
---|---|
protected org.kurento.jsonrpc.Props |
genericProperties |
protected org.kurento.jsonrpc.Props |
props |
Constructor and Description |
---|
AbstractBuilder(Class<?> clazz,
KurentoObject kurentoObject) |
AbstractBuilder(Class<?> clazz,
org.kurento.client.internal.client.RomManager manager) |
Modifier and Type | Method and Description |
---|---|
T |
build()
Builds an object synchronously using the builder design pattern.
|
T |
build(Transaction transaction) |
void |
buildAsync(Continuation<T> continuation)
Builds an object asynchronously using the builder design pattern.
|
AbstractBuilder<T> |
with(String name,
Object value) |
AbstractBuilder<T> |
withProperties(Properties properties) |
protected final org.kurento.jsonrpc.Props props
protected final org.kurento.jsonrpc.Props genericProperties
public AbstractBuilder(Class<?> clazz, KurentoObject kurentoObject)
public AbstractBuilder(Class<?> clazz, org.kurento.client.internal.client.RomManager manager)
public T build()
public T build(Transaction transaction)
public void buildAsync(Continuation<T> continuation)
Continuation.onSuccess(F)
called when the object is ready, or
Continuation.onError(java.lang.Throwable)
if an error occurscontinuation
- will be called when the object is builtpublic AbstractBuilder<T> withProperties(Properties properties)
public AbstractBuilder<T> with(String name, Object value)
Copyright © 2019 Kurento. All rights reserved.