com.wowza.wms.response
Class ResponseFunctions

Object
  extended by com.wowza.wms.response.ResponseFunctions

public class ResponseFunctions
extends Object

ResponseFunctions: collection of ResponseFunction objects. This interface is used to asynchronously collect up a set of client responses that will be sent to the client at the next opportunity.


Constructor Summary
ResponseFunctions()
           
 
Method Summary
 void add(ResponseFunction wmsResponseFunction)
          Add a function.
 void clear()
           
 boolean isPending()
          Are there any pending items in the list.
 int output(java.io.OutputStream out, int sendChunkSize)
          Write all functions (in order added to list) to OutputStream.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseFunctions

public ResponseFunctions()
Method Detail

add

public void add(ResponseFunction wmsResponseFunction)
Add a function.

Parameters:
wmsResponseFunction - function

clear

public void clear()

isPending

public boolean isPending()
Are there any pending items in the list.

Returns:
true if items in list

output

public int output(java.io.OutputStream out,
                  int sendChunkSize)
Write all functions (in order added to list) to OutputStream.

Parameters:
out - OutputStream
Returns:
total number of bytes written