org.jgroups.protocols

Interface QUEUE.Observer

public static interface QUEUE.Observer

Method Summary

boolean
addingToDownVector(Event evt, int num_events)
Called before event is added.
boolean
addingToUpVector(Event evt, int num_events)
Called before event is added.

Method Details

addingToDownVector

public boolean addingToDownVector(Event evt,
                                  int num_events)
Called before event is added. Blocks until call returns.
Parameters:
evt - The event
num_events - The number of events in the down vector before this event is added
Returns:
boolean True if event should be added. False if it should be discarded

addingToUpVector

public boolean addingToUpVector(Event evt,
                                int num_events)
Called before event is added. Blocks until call returns.
Parameters:
evt - The event
num_events - The number of events in the up vector before this event is added
Returns:
boolean True if event should be added. False if it should be discarded

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.