Package com.ccc.barcode
Class QueueCameraServer
java.lang.Object
com.ccc.barcode.CameraServer
com.ccc.barcode.QueueCameraServer
- All Implemented Interfaces:
Runnable
This server is a utility for simple camera scripts. It provides a
thread safe queue that can be watched to get scanner messages. It
doesn't provide a way to determine which camera a scan was sent
from.
-
Field Summary
Fields inherited from class com.ccc.barcode.CameraServer
address -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractQueue<CameraScanResult> createScanQueue(InetSocketAddress address) Create a thread safe queue that will stream inscansfrom all detected cameras.protected voidonMessage(CameraInfo connection, CameraScanResult result) Called every time a camera receives a message.Methods inherited from class com.ccc.barcode.CameraServer
onConnect, onDisconnect, run
-
Method Details
-
createScanQueue
Create a thread safe queue that will stream inscansfrom all detected cameras. -
onMessage
Description copied from class:CameraServerCalled every time a camera receives a message.- Overrides:
onMessagein classCameraServer- Parameters:
connection- Information on the camera.result- Information from the scan.
-