/** * Check if the queue is full * @return true if the queue is full */ final synchronized boolean isFull() { return increase(tail) == head; }
/** * Check if the queue is full * @return true if the queue is full */ final synchronized boolean isFull() { return increase(tail) == head; }
/** * Check if the queue is full * @return true if the queue is full */ final synchronized boolean isFull() { return increase(tail) == head; }
/** * Check if the queue is full * @return true if the queue is full */ final synchronized boolean isFull() { return increase(tail) == head; }
/** * This is an internal method and should not be called by applications using the API */ final synchronized void add(Event event) { queue[tail].set(event); tail = increase(tail); }
/** * This is an internal method and should not be called by applications using the API */ final synchronized void add(Event event) { queue[tail].set(event); tail = increase(tail); }
/** * This is an internal method and should not be called by applications using the API */ final synchronized void add(Event event) { queue[tail].set(event); tail = increase(tail); }
/** * This is an internal method and should not be called by applications using the API */ final synchronized void add(Event event) { queue[tail].set(event); tail = increase(tail); }
/** * Populates the provided event with the details of the event on the head of the queue. * * @param event The event to populate * @return false if there were no events left on the queue, otherwise true. */ public final synchronized boolean getNextEvent(Event event) { if (head == tail) return false; event.set(queue[head]); head = increase(head); return true; } }
/** * Populates the provided event with the details of the event on the head of the queue. * * @param event The event to populate * @return false if there were no events left on the queue, otherwise true. */ public final synchronized boolean getNextEvent(Event event) { if (head == tail) return false; event.set(queue[head]); head = increase(head); return true; } }
/** * Populates the provided event with the details of the event on the head of the queue. * * @param event The event to populate * @return false if there were no events left on the queue, otherwise true. */ public final synchronized boolean getNextEvent(Event event) { if (head == tail) return false; event.set(queue[head]); head = increase(head); return true; } }
/** * Populates the provided event with the details of the event on the head of the queue. * * @param event The event to populate * @return false if there were no events left on the queue, otherwise true. */ public final synchronized boolean getNextEvent(Event event) { if (head == tail) return false; event.set(queue[head]); head = increase(head); return true; } }