solar.service.pack.proto
Class PessimisticBufferPacker

java.lang.Object
  |
  +--solar.service.pack.proto.PessimisticBufferPacker
All Implemented Interfaces:
BufferPacker

public class PessimisticBufferPacker
extends java.lang.Object
implements BufferPacker

A pessimistic buffer packer always runs all the filters in the policy trying to drop as much events as possible.

Version:
$Id: PessimisticBufferPacker.java,v 1.3 2003/10/13 19:34:26 glchen Exp $
Author:
Guanling Chen

Constructor Summary
PessimisticBufferPacker()
           
 
Method Summary
 Buffer pack(Buffer buffer, PackPolicy policy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PessimisticBufferPacker

public PessimisticBufferPacker()
Method Detail

pack

public Buffer pack(Buffer buffer,
                   PackPolicy policy)
            throws java.lang.Exception
Specified by:
pack in interface BufferPacker
java.lang.Exception