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 Props |
genericProperties |
protected Props |
props |
| Constructor and Description |
|---|
AbstractBuilder(Class<?> clazz,
KurentoObject kurentoObject) |
AbstractBuilder(Class<?> clazz,
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 Props props
protected final Props genericProperties
public AbstractBuilder(Class<?> clazz, KurentoObject kurentoObject)
public AbstractBuilder(Class<?> clazz, 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 © 2022 Kurento. All rights reserved.