/* * Salamander Transport Layer * * Michael J. Willis (violator@umich.edu) * * $Workfile: SalDataQueue.java $ * $Author: rmalan $ * $Date: 1997/07/16 02:22:29 $ * $Revision: 1.2 $ */ package Salamander; public interface SalDataQueue { /** * Called by SalConnection object whenever a SalPacket is read out * of the input stream * @param packet The new SalPacket */ public void enqueue(SalPacket packet); /** * To be used for diagnostics/benchmarking only. Should return * the number of packets that are currently in the queue. * @returns The number of SalPackets currently queued. */ public int getCurrentQueueLength(); }