public class IStreamRelativeAccess extends Object implements RelativeAccessByEventNIndex, ViewUpdatedCollection
Modifier and Type | Class and Description |
---|---|
static interface |
IStreamRelativeAccess.IStreamRelativeAccessUpdateObserver
For indicating that the collection has been updated.
|
Constructor and Description |
---|
IStreamRelativeAccess(IStreamRelativeAccess.IStreamRelativeAccessUpdateObserver updateObserver)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
De-allocate resources held by the collection.
|
int |
getNumEventsInsertBuf() |
EventBean |
getRelativeToEnd(int prevIndex) |
EventBean |
getRelativeToEvent(EventBean theEvent,
int prevIndex)
Returns the prior event to the given event counting back the number of events as supplied by index.
|
Iterator<EventBean> |
getWindowToEvent() |
Collection<EventBean> |
getWindowToEventCollReadOnly() |
int |
getWindowToEventCount() |
void |
update(EventBean[] newData,
EventBean[] oldData)
Accepts view insert and remove stream.
|
public IStreamRelativeAccess(IStreamRelativeAccess.IStreamRelativeAccessUpdateObserver updateObserver)
updateObserver
- is invoked when updates are receivedpublic void update(EventBean[] newData, EventBean[] oldData)
ViewUpdatedCollection
update
in interface ViewUpdatedCollection
newData
- is the insert stream events or null if no dataoldData
- is the remove stream events or null if no datapublic EventBean getRelativeToEvent(EventBean theEvent, int prevIndex)
RelativeAccessByEventNIndex
getRelativeToEvent
in interface RelativeAccessByEventNIndex
theEvent
- is the event to count back fromprevIndex
- is the number of events to go backpublic EventBean getRelativeToEnd(int prevIndex)
getRelativeToEnd
in interface RelativeAccessByEventNIndex
public Iterator<EventBean> getWindowToEvent()
getWindowToEvent
in interface RelativeAccessByEventNIndex
public Collection<EventBean> getWindowToEventCollReadOnly()
getWindowToEventCollReadOnly
in interface RelativeAccessByEventNIndex
public int getWindowToEventCount()
getWindowToEventCount
in interface RelativeAccessByEventNIndex
public void destroy()
ViewUpdatedCollection
destroy
in interface ViewUpdatedCollection
public int getNumEventsInsertBuf()
getNumEventsInsertBuf
in interface ViewUpdatedCollection