Bartosz Firyn (SarXos)

com.github.sarxos.webcam
Class WebcamDiscoveryService

java.lang.Object
  extended by com.github.sarxos.webcam.WebcamDiscoveryService
All Implemented Interfaces:
Runnable, Thread.UncaughtExceptionHandler

public class WebcamDiscoveryService
extends Object
implements Runnable, Thread.UncaughtExceptionHandler


Method Summary
 List<Webcam> getWebcams(long timeout, TimeUnit tunit)
           
 boolean isRunning()
          Is discovery service running?
 void run()
           
 void start()
          Start discovery service.
 void stop()
          Stop discovery service.
 void uncaughtException(Thread t, Throwable e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getWebcams

public List<Webcam> getWebcams(long timeout,
                               TimeUnit tunit)
                        throws TimeoutException
Throws:
TimeoutException

run

public void run()
Specified by:
run in interface Runnable

stop

public void stop()
Stop discovery service.


start

public void start()
Start discovery service.


isRunning

public boolean isRunning()
Is discovery service running?

Returns:
True or false

uncaughtException

public void uncaughtException(Thread t,
                              Throwable e)
Specified by:
uncaughtException in interface Thread.UncaughtExceptionHandler

Bartosz Firyn (SarXos)

Copyright © 2012-2013 Bartosz Firyn (SarXos). All Rights Reserved.