void function ( int arg0 , byte [ ] ... arg1 ) { remove_from_queue ( arg0 ) ; QueueItem loc0 = QueueItem . createRepeatable ( arg0 , arg1 [ 0 ] ) ; QueueItem loc1 = loc0 ; for ( int loc2 = 1 ; loc2 < arg1 . length ; ++ loc2 ) { loc1 = loc1 . addRepeatable ( arg1 [ loc2 ] ) ; } queue . offer ( loc0 ) ; }
add data to the send queue . use a category of 0 to make an item non-categorised . commands which need to be queued up and not replacing same type commands must be non-categorised . items added to the queue are considered repeatable , in the sense that they do not cause side effects if they are send multiple times e.g. absolute values . if you want to , you can add multiple byte sequences to the queue , even if they have the same id . this is used for animations and multi-message commands . be aware that a later added command with the same id will replace all those commands at once . concode_field_sep int delay_between_commands concode_elem_sep int repeat_commands concode_elem_sep byte NO_CATEGORY concode_elem_sep Logger logger concode_elem_sep BlockingQueue<QueueItem> queue concode_elem_sep boolean willbeclosed concode_elem_sep Thread thread concode_elem_sep DatagramPacket packet concode_elem_sep DatagramSocket datagramSocket concode_field_sep int getDelayBetweenCommands concode_elem_sep void remove_from_queue concode_elem_sep void setAddress concode_elem_sep void start concode_elem_sep void run concode_elem_sep void setPort concode_elem_sep int getPort concode_elem_sep void setDelayBetweenCommands concode_elem_sep DatagramSocket getSocket concode_elem_sep void setRepeatCommands concode_elem_sep void dispose concode_elem_sep void setRepeatTimes concode_elem_sep InetAddress getAddr concode_elem_sep void queue concode_elem_sep int getRepeatCommands