Class 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>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CreateDescObserver

        public CreateDescObserver()
    • Method Detail

      • onSuccess

        public void onSuccess​(dev.onvoid.webrtc.RTCSessionDescription description)
        Specified by:
        onSuccess in interface dev.onvoid.webrtc.CreateSessionDescriptionObserver
      • onFailure

        public void onFailure​(java.lang.String error)
        Specified by:
        onFailure in interface dev.onvoid.webrtc.CreateSessionDescriptionObserver
      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
        Specified by:
        cancel in interface java.util.concurrent.Future<dev.onvoid.webrtc.RTCSessionDescription>
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface java.util.concurrent.Future<dev.onvoid.webrtc.RTCSessionDescription>
      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface java.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 interface java.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 interface java.util.concurrent.Future<dev.onvoid.webrtc.RTCSessionDescription>
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException