net.esper.view
Interface StreamView

All Superinterfaces:
EventCollection, java.lang.Iterable<EventBean>, View, Viewable

public interface StreamView
extends View

The StreamView interface allows a view to interact with a EventStream to share data. A view implementing StreamView is called by the EventStream to determine what usage that view is making of the stream's data structures. This allows the view to forego keeping its own data structures and instead referencing those of the stream.


Method Summary
 long doneWith()
          Called by the EventStream owning a view to determine the largest event sequence number which that view no longer needs.
 
Methods inherited from interface net.esper.view.View
attachesTo, getParent, setParent, update
 
Methods inherited from interface net.esper.view.Viewable
addView, getViews, hasViews, removeView
 

Method Detail

doneWith

long doneWith()
Called by the EventStream owning a view to determine the largest event sequence number which that view no longer needs.

Returns:
the event number no longer needed