jfreerails.network
Class SychronizedQueue

java.lang.Object
  extended by jfreerails.network.SychronizedQueue

public class SychronizedQueue
extends java.lang.Object

Intended to let objects be safely passed between threads.

Author:
Luke

Field Summary
private  java.util.LinkedList<FreerailsSerializable> queue
           
 
Constructor Summary
SychronizedQueue()
           
 
Method Summary
 FreerailsSerializable getFirst()
           
 FreerailsSerializable[] read()
           
 int size()
           
 void write(FreerailsSerializable f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queue

private final java.util.LinkedList<FreerailsSerializable> queue
Constructor Detail

SychronizedQueue

public SychronizedQueue()
Method Detail

write

public void write(FreerailsSerializable f)

read

public FreerailsSerializable[] read()

size

public int size()

getFirst

public FreerailsSerializable getFirst()