com.github.sarxos.webcam
Class WebcamDiscoveryService

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

public class WebcamDiscoveryService
extends Object
implements Runnable


Constructor Summary
protected WebcamDiscoveryService(WebcamDriver driver)
           
 
Method Summary
protected  void dispose()
          Cleanup.
 List<Webcam> getWebcams()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebcamDiscoveryService

protected WebcamDiscoveryService(WebcamDriver driver)
Method Detail

getWebcams

public List<Webcam> getWebcams()
                        throws TimeoutException
Throws:
TimeoutException

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

dispose

protected void dispose()
Cleanup.



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