Skip navigation links
com.bea.wlevs.ede.api
Interface EventChannel
- public interface EventChannel
- extends Stage, EventQueue, HeartbeatAware, com.bea.wlevs.ede.api.EventSinkManager, BatchRelationSink, BatchStreamSink
A event channel is a conduit for events. Event channels support two types of modeling, streams and relations. Streams are append-only, that is, events are always appended to the end of the stream. Relations support events that insert, delete, and update its content. Events send to channels must have non-decreasing time-stamps.
Method Summary |
java.lang.String |
getEventType()
Only events of this event type are allowed to pass through this event channel. |
java.lang.String |
getId()
Returns the event channel identity |
java.util.List |
getPrimaryKey()
Returns primary key of relation, or an empty list for streams. |
java.lang.String |
getTimestampExpression()
Returns expression used to calculate the application timestamp. |
boolean |
isApplicationTimestamped()
Returns if channel is application timestamped, that is, application is responsible for assigning a timestamp to each event. |
boolean |
isBatchEvents()
Returns if channel is batching over timestamp |
boolean |
isRelation()
Returns if event channel is carrying relations, instead of streams. |
boolean |
isSystemTimestamped()
Returns if channel is system timestamped, that is, the system is responsible for assigning a timestamp to each event. |
boolean |
isTotalOrder()
Returns if application time published is always strictly greater than the last value used. |
getId
public java.lang.String getId()
- Returns the event channel identity
-
- Returns:
- identity
getEventType
public java.lang.String getEventType()
- Only events of this event type are allowed to pass through this event channel.
-
- Returns:
- event type name
getTimestampExpression
public java.lang.String getTimestampExpression()
- Returns expression used to calculate the application timestamp.
-
- Parameters:
expression
-
isRelation
public boolean isRelation()
- Returns if event channel is carrying relations, instead of streams.
-
- Returns:
- boolean
getPrimaryKey
public java.util.List getPrimaryKey()
- Returns primary key of relation, or an empty list for streams.
-
- Returns:
- list of property names used as primary key for relation
isTotalOrder
public boolean isTotalOrder()
- Returns if application time published is always strictly greater than the last value used.
-
- Returns:
- boolean
isSystemTimestamped
public boolean isSystemTimestamped()
- Returns if channel is system timestamped, that is, the system is responsible for assigning a timestamp to each event. This is done using
System.nanoTime()
.
-
- Returns:
- boolean
isApplicationTimestamped
public boolean isApplicationTimestamped()
- Returns if channel is application timestamped, that is, application is responsible for assigning a timestamp to each event. Application may use any time domain.
-
- Returns:
- boolean
isBatchEvents
public boolean isBatchEvents()
- Returns if channel is batching over timestamp
-
- Returns:
- boolean