public final class EventStreamIndex extends java.lang.Object implements KnowledgeIndex
This knowledge index provides information about event streams in operations, including the input/output member that contains an event stream, the shape targeted by this member, and any additional input/output members that form the initial message.
Constructor and Description |
---|
EventStreamIndex(Model model) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<EventStreamInfo> |
getInputInfo(ToShapeId operationShape)
Get event stream information for the input of an operation.
|
java.util.Optional<EventStreamInfo> |
getOutputInfo(ToShapeId operationShape)
Get event stream information for the output of an operation.
|
static EventStreamIndex |
of(Model model) |
public EventStreamIndex(Model model)
public static EventStreamIndex of(Model model)
public java.util.Optional<EventStreamInfo> getInputInfo(ToShapeId operationShape)
No result is returned if the provided operation shape does not exist, if the targeted shape is not an operation, if the operation does not contain an input structure or if the input structure does not contain an input event stream.
operationShape
- Operation or shape ID to retrieve information for.public java.util.Optional<EventStreamInfo> getOutputInfo(ToShapeId operationShape)
No result is returned if the provided operation shape does not exist, if the targeted shape is not an operation, if the operation does not contain an output structure or if the output structure does not contain an output event stream.
operationShape
- Operation or shape ID to retrieve information for.