megamek.common.net
Class AbstractConnection.SendQueue

java.lang.Object
  extended by megamek.common.net.AbstractConnection.SendQueue
Enclosing class:
AbstractConnection

static class AbstractConnection.SendQueue
extends java.lang.Object


Constructor Summary
AbstractConnection.SendQueue()
           
 
Method Summary
 void addPacket(megamek.common.net.AbstractConnection.SendPacket packet)
           
 void finish()
           
 megamek.common.net.AbstractConnection.SendPacket getPacket()
          Waits for a packet to appear in the queue and then returns it.
 boolean hasPending()
          Returns true if this connection has pending data
 void reportContents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConnection.SendQueue

AbstractConnection.SendQueue()
Method Detail

addPacket

public void addPacket(megamek.common.net.AbstractConnection.SendPacket packet)

finish

public void finish()

getPacket

public megamek.common.net.AbstractConnection.SendPacket getPacket()
Waits for a packet to appear in the queue and then returns it.

Returns:
the first available packet in the queue or null if none

hasPending

public boolean hasPending()
Returns true if this connection has pending data


reportContents

public void reportContents()