public class AbstractBuilder<T>
extends java.lang.Object
<T>
object, either synchronously using
build()
or asynchronously using buildAsync(org.kurento.client.Continuation<T>)
Modifier and Type | Field and Description |
---|---|
protected Props |
genericProperties |
protected Props |
props |
Constructor and Description |
---|
AbstractBuilder(java.lang.Class<?> clazz,
KurentoObject kurentoObject) |
AbstractBuilder(java.lang.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(java.lang.String name,
java.lang.Object value) |
AbstractBuilder<T> |
withProperties(Properties properties) |
protected final Props props
protected final Props genericProperties
public AbstractBuilder(java.lang.Class<?> clazz, KurentoObject kurentoObject)
public AbstractBuilder(java.lang.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(java.lang.String name, java.lang.Object value)