Public Member Functions

cern.laser.util.buffer.SynchroBufferAdapter Class Reference

List of all members.

Public Member Functions

 SynchroBufferAdapter (SynchroBufferListener listener, SynchroBuffer buffer)
void push (Object object)
void push (Collection collection)
void enable ()
void disable ()
void close ()

Detailed Description

A buffering utility class. It is an adapter for a SynchroBuffer instance allowing to detach the buffer consumer thread from the SynchroBuffer itself for slow consumers.

Author:
F.Calderini

Constructor & Destructor Documentation

cern.laser.util.buffer.SynchroBufferAdapter.SynchroBufferAdapter ( SynchroBufferListener  listener,
SynchroBuffer  buffer 
)

Constructor. The listener is disabled by default.

Parameters:
listener the buffer listener
buffer the SynchroBuffer instance

References cern.laser.util.buffer.SynchroBuffer.setSynchroBufferListener().


Member Function Documentation

void cern.laser.util.buffer.SynchroBufferAdapter.close (  ) 

Close the buffer and deallocate resources.

References cern.laser.util.buffer.SynchroBuffer.close().

void cern.laser.util.buffer.SynchroBufferAdapter.disable (  ) 

Disable the listener. Pushed object are kept in the buffer and delivered when the listener is enabled.

References cern.laser.util.buffer.SynchroBuffer.disable().

void cern.laser.util.buffer.SynchroBufferAdapter.enable (  ) 

Enable the listener. The listener is disabled by default.

References cern.laser.util.buffer.SynchroBuffer.enable().

void cern.laser.util.buffer.SynchroBufferAdapter.push ( Object  object  ) 

Push an object into the buffer.

Parameters:
object the object to push

References cern.laser.util.buffer.SynchroBuffer.push().

void cern.laser.util.buffer.SynchroBufferAdapter.push ( Collection  collection  ) 

Push a collection of objects into the buffer.

Parameters:
collection the collection of objects to push

References cern.laser.util.buffer.SynchroBuffer.push().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties