ERXKeepAliveResponse Class Reference

Inherits er::extensions::appserver::ERXResponse.

Collaboration diagram for ERXKeepAliveResponse:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ERXKeepAliveResponse ()
void push (byte[] data)
void push (String str)
void reset ()

Protected Attributes

byte[] _current = null
int _currentIndex = 0
Queue< byte[]> _queue = new ConcurrentLinkedQueue<byte[]>()

Static Protected Attributes

static final Logger log = Logger.getLogger(ERXKeepAliveResponse.class)


Detailed Description

Special response that keeps the connection alive and pushes the data to the client. It does this by opening a stream that has small buffer but huge length.

Author:
ak

Constructor & Destructor Documentation


Member Function Documentation

void push ( byte[]  data  ) 

Enqueues the data.

Parameters:
data 

void push ( String  str  ) 

Enqueues the data for this string using the response encoding.

Parameters:
str the string to push

void reset (  ) 

Resets the response by clearing out the current item and notifying the queue.


Member Data Documentation

byte [] _current = null [protected]

Current data to write to client.

int _currentIndex = 0 [protected]

Current index in

Queue<byte[]> _queue = new ConcurrentLinkedQueue<byte[]>() [protected]

Queue to push the items into.

final Logger log = Logger.getLogger(ERXKeepAliveResponse.class) [static, protected]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:02 2012 for Project Wonder by  doxygen 1.5.8