public bool add(EzyPacket packet) { int queueSize = queue.size(); if (queueSize >= capacity) { return(false); } bool success = queue.offer(packet); return(success); }
public virtual void sendMessage(EzyArray msg) { ticketsQueue.offer(msg); }