meerkat-java/voting-booth
Hai Brenner da7a05ecd8 Fix: UI now has command queue of size 1.
A new CommandPend class is introduced. It functions basically as
an ArrayBlockingQueue of size 1.
Difference is that it can handle two functions from two different threads
 - trample(cmd): removes the previously kept command (if there is such) and overrides it with the next command
 - offer(cmd): keeps the given command, but only if it doesn't currently keeps an older one

This new functionality is used so the UI can get commands from the controller
(but only take into account the latest one). At the same time it gets tick commands
from its clock ticker, but only keep and handle those if it doesn't have
a real controller command to handle.
2016-07-19 12:05:06 +03:00
..
src Fix: UI now has command queue of size 1. 2016-07-19 12:05:06 +03:00
build.gradle Add polling-station project dependency to VB build.gradle for testing purposes 2016-07-12 11:50:21 +03:00
gradlew Moved to multi-project gradle build; added (non-working) hello world for bulletin-board server using Jetty and Jersey 2015-11-09 16:01:59 +02:00