public class StateEvent extends Object implements ComplexEvent
ComplexEvent.Type| Modifier and Type | Field and Description |
|---|---|
protected StateEvent |
next |
protected Object[] |
outputData |
protected StreamEvent[] |
streamEvents |
protected long |
timestamp |
protected ComplexEvent.Type |
type |
| Constructor and Description |
|---|
StateEvent(int streamEventsSize,
int outputSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(int position,
StreamEvent streamEvent) |
Object |
getAttribute(int[] position) |
long |
getId() |
StateEvent |
getNext() |
Object[] |
getOutputData() |
StreamEvent |
getStreamEvent(int position) |
StreamEvent |
getStreamEvent(int[] position) |
StreamEvent[] |
getStreamEvents() |
long |
getTimestamp() |
ComplexEvent.Type |
getType() |
void |
removeLastEvent(int position) |
void |
setAttribute(Object object,
int[] position) |
void |
setEvent(int position,
StreamEvent streamEvent) |
void |
setId(long id) |
void |
setNext(ComplexEvent stateEvent) |
void |
setOutputData(Object object,
int index) |
void |
setTimestamp(long timestamp) |
void |
setType(ComplexEvent.Type type) |
String |
toString() |
protected StreamEvent[] streamEvents
protected StateEvent next
protected long timestamp
protected ComplexEvent.Type type
protected Object[] outputData
public StreamEvent getStreamEvent(int position)
public StreamEvent[] getStreamEvents()
public StateEvent getNext()
getNext in interface ComplexEventpublic void setNext(ComplexEvent stateEvent)
setNext in interface ComplexEventpublic void setOutputData(Object object, int index)
setOutputData in interface ComplexEventpublic Object getAttribute(int[] position)
getAttribute in interface ComplexEventposition - int array of 3 or 4 elements
int array of 3 : position[0]-which element of the streamEventSize array,
position[1]-BeforeWindowData or OutputData or AfterWindowData,
position[2]- which attribute
int array of 4 : position[0]-which element of the streamEventSize array, position[1]-which
event of the event chain,
position[3]- BeforeWindowData or OutputData or AfterWindowData, position[4]- which attributepublic void setAttribute(Object object, int[] position)
setAttribute in interface ComplexEventpublic StreamEvent getStreamEvent(int[] position)
public Object[] getOutputData()
getOutputData in interface ComplexEventpublic long getTimestamp()
getTimestamp in interface ComplexEventpublic void setTimestamp(long timestamp)
public ComplexEvent.Type getType()
getType in interface ComplexEventpublic void setType(ComplexEvent.Type type)
setType in interface ComplexEventpublic void setEvent(int position,
StreamEvent streamEvent)
public void addEvent(int position,
StreamEvent streamEvent)
public void removeLastEvent(int position)
public long getId()
public void setId(long id)
Copyright © 2017 WSO2. All rights reserved.