Package org.kurento.client
Class AbstractBuilder<T>
- java.lang.Object
-
- org.kurento.client.AbstractBuilder<T>
-
- Direct Known Subclasses:
AlphaBlending.Builder
,Composite.Builder
,Dispatcher.Builder
,DispatcherOneToMany.Builder
,FaceOverlayFilter.Builder
,GenericMediaElement.Builder
,GStreamerFilter.Builder
,HttpPostEndpoint.Builder
,HubPort.Builder
,ImageOverlayFilter.Builder
,Mixer.Builder
,PassThrough.Builder
,PlayerEndpoint.Builder
,RecorderEndpoint.Builder
,RtpEndpoint.Builder
,WebRtcEndpoint.Builder
,ZBarFilter.Builder
public class AbstractBuilder<T> extends Object
Kurento Media Builder base interface. Builds a<T>
object, either synchronously usingbuild()
or asynchronously usingbuildAsync(org.kurento.client.Continuation<T>)
-
-
Field Summary
Fields Modifier and Type Field Description protected org.kurento.jsonrpc.Props
genericProperties
protected org.kurento.jsonrpc.Props
props
-
Constructor Summary
Constructors Constructor Description AbstractBuilder(Class<?> clazz, org.kurento.client.internal.client.RomManager manager)
AbstractBuilder(Class<?> clazz, KurentoObject kurentoObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
AbstractBuilder
public AbstractBuilder(Class<?> clazz, KurentoObject kurentoObject)
-
AbstractBuilder
public AbstractBuilder(Class<?> clazz, org.kurento.client.internal.client.RomManager manager)
-
-
Method Detail
-
build
public T build()
Builds an object synchronously using the builder design pattern.- Returns:
- T The type of object
-
build
public T build(Transaction transaction)
-
buildAsync
public void buildAsync(Continuation<T> continuation)
Builds an object asynchronously using the builder design pattern. The continuation will haveContinuation.onSuccess(F)
called when the object is ready, orContinuation.onError(java.lang.Throwable)
if an error occurs- Parameters:
continuation
- will be called when the object is built
-
withProperties
public AbstractBuilder<T> withProperties(Properties properties)
-
with
public AbstractBuilder<T> with(String name, Object value)
-
-