jssh
Class PacketQueue

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.AbstractSequentialList
                    |
                    +--java.util.LinkedList
                          |
                          +--jssh.PacketQueue
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

class PacketQueue
extends java.util.LinkedList

This class queues SSH protocol packets.


Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
(package private) PacketQueue()
          Constructor
 
Method Summary
(package private)  void enqueue(Packet packet_)
          Enqueue an Packet object onto the queue.
(package private)  Packet getNextPacket()
          Dequeue an Packet object off the queue; if the queue is empty, wait until another thread enqueues an event onto it.
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

PacketQueue

PacketQueue()
Constructor

Method Detail

enqueue

void enqueue(Packet packet_)
Enqueue an Packet object onto the queue.


getNextPacket

Packet getNextPacket()
Dequeue an Packet object off the queue; if the queue is empty, wait until another thread enqueues an event onto it.

Returns:
the next Packet from the queue; or null if the thread was interrupted.