Package org.kurento.client
Class AbstractBuilder<T>
java.lang.Object
org.kurento.client.AbstractBuilder<T>
- Type Parameters:
T
- the type of object to build
- 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
Kurento Media Builder base interface. Builds a
<T>
object, either synchronously using
build()
or asynchronously using buildAsync(org.kurento.client.Continuation<T>)
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.kurento.jsonrpc.Props
protected final org.kurento.jsonrpc.Props
-
Constructor Summary
ConstructorDescriptionAbstractBuilder
(Class<?> clazz, org.kurento.client.internal.client.RomManager manager) AbstractBuilder
(Class<?> clazz, KurentoObject kurentoObject) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds an object synchronously using the builder design pattern.build
(Transaction transaction) void
buildAsync
(Continuation<T> continuation) Builds an object asynchronously using the builder design pattern.withProperties
(Properties properties)
-
Field Details
-
props
protected final org.kurento.jsonrpc.Props props -
genericProperties
protected final org.kurento.jsonrpc.Props genericProperties
-
-
Constructor Details
-
AbstractBuilder
-
AbstractBuilder
-
-
Method Details
-
build
Builds an object synchronously using the builder design pattern.- Returns:
- T The type of object
-
build
-
buildAsync
Builds an object asynchronously using the builder design pattern.The continuation will have
Continuation.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
-
with
-