Class CreateDescObserver
java.lang.Object
com.openfin.desktop.channel.webrtc.CreateDescObserver
- All Implemented Interfaces:
dev.onvoid.webrtc.CreateSessionDescriptionObserver
,java.util.concurrent.Future<dev.onvoid.webrtc.RTCSessionDescription>
public class CreateDescObserver
extends java.lang.Object
implements dev.onvoid.webrtc.CreateSessionDescriptionObserver, java.util.concurrent.Future<dev.onvoid.webrtc.RTCSessionDescription>
-
Constructor Summary
Constructors Constructor Description CreateDescObserver()
-
Method Summary
Modifier and Type Method Description boolean
cancel(boolean mayInterruptIfRunning)
dev.onvoid.webrtc.RTCSessionDescription
get()
dev.onvoid.webrtc.RTCSessionDescription
get(long timeout, java.util.concurrent.TimeUnit unit)
boolean
isCancelled()
boolean
isDone()
void
onFailure(java.lang.String error)
void
onSuccess(dev.onvoid.webrtc.RTCSessionDescription description)
-
Constructor Details
-
CreateDescObserver
public CreateDescObserver()
-
-
Method Details
-
onSuccess
public void onSuccess(dev.onvoid.webrtc.RTCSessionDescription description)- Specified by:
onSuccess
in interfacedev.onvoid.webrtc.CreateSessionDescriptionObserver
-
onFailure
public void onFailure(java.lang.String error)- Specified by:
onFailure
in interfacedev.onvoid.webrtc.CreateSessionDescriptionObserver
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)- Specified by:
cancel
in interfacejava.util.concurrent.Future<dev.onvoid.webrtc.RTCSessionDescription>
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfacejava.util.concurrent.Future<dev.onvoid.webrtc.RTCSessionDescription>
-
isDone
public boolean isDone()- Specified by:
isDone
in interfacejava.util.concurrent.Future<dev.onvoid.webrtc.RTCSessionDescription>
-
get
public dev.onvoid.webrtc.RTCSessionDescription get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException- Specified by:
get
in interfacejava.util.concurrent.Future<dev.onvoid.webrtc.RTCSessionDescription>
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
-
get
public dev.onvoid.webrtc.RTCSessionDescription get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException- Specified by:
get
in interfacejava.util.concurrent.Future<dev.onvoid.webrtc.RTCSessionDescription>
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
-