Commented out throws in the BinaryMessageDecoder for messages we ignore as they were not errors and instead were causing the program to stop if they're received
///A queue that contains messages that have been received, and need to be handled.
privatefinalArrayBlockingQueue<AC35Data>messagesReceivedQueue=newArrayBlockingQueue<>(1000000);//We have room for 1,000,000. Is this much capacity actually needed?
///Timestamp of the last heartbeat.
privatelonglastHeartbeatTime=-1;
///Sequence number of the last heartbeat.
@ -254,7 +257,11 @@ public class VisualiserInput implements Runnable {
System.err.println("Unable to read message: "+e.getMessage());
//Continue to the next loop iteration/message.
continue;
}
}/*
//Add it to message queue.
this.messagesReceivedQueue.add(message);*/
//Checks which message is being received and does what is needed for that message.