E
- sub types of ComplexEvent such as StreamEvent and StateEventpublic class ComplexEventChunk<E extends ComplexEvent> extends Object implements Iterator<E>, Serializable
Modifier and Type | Field and Description |
---|---|
protected E |
first |
protected boolean |
isBatch |
protected E |
last |
protected E |
lastReturned |
protected E |
previousToLastReturned |
Constructor and Description |
---|
ComplexEventChunk()
Deprecated.
|
ComplexEventChunk(boolean isBatch) |
ComplexEventChunk(E first,
E last)
Deprecated.
|
ComplexEventChunk(E first,
E last,
boolean isBatch) |
Modifier and Type | Method and Description |
---|---|
void |
add(E complexEvents) |
void |
clear() |
void |
detach() |
E |
detachAllBeforeCurrent() |
E |
getFirst() |
E |
getLast() |
boolean |
hasNext()
Returns true if the iteration has more elements.
|
void |
insertAfterCurrent(E streamEvents) |
void |
insertBeforeCurrent(E events) |
boolean |
isBatch() |
E |
next()
Returns the next element in the iteration.
|
E |
poll() |
void |
remove()
Removes from the underlying collection the last element returned by the
iterator (optional operation).
|
void |
reset() |
void |
setBatch(boolean batch) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEachRemaining
protected E extends ComplexEvent first
protected E extends ComplexEvent previousToLastReturned
protected E extends ComplexEvent lastReturned
protected E extends ComplexEvent last
protected boolean isBatch
public ComplexEventChunk(boolean isBatch)
@Deprecated public ComplexEventChunk()
@Deprecated public ComplexEventChunk(E first, E last)
public void insertBeforeCurrent(E events)
public void insertAfterCurrent(E streamEvents)
public void add(E complexEvents)
public boolean hasNext()
hasNext
in interface Iterator<E extends ComplexEvent>
public E next()
next
in interface Iterator<E extends ComplexEvent>
NoSuchElementException
- iteration has no more elements.public void remove()
remove
in interface Iterator<E extends ComplexEvent>
UnsupportedOperationException
- if the remove
operation is not supported by this Iterator.IllegalStateException
- if the next method has not
yet been called, or the remove method has already
been called after the last call to the next
method.public void detach()
public E detachAllBeforeCurrent()
public void clear()
public void reset()
public E getFirst()
public E getLast()
public E poll()
public boolean isBatch()
public void setBatch(boolean batch)
Copyright © 2019. All rights reserved.