Interface MessagingChannel<T>
- Type Parameters:
T- payload type
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
MessagingChannel.BuilderBase.MessagingChannelImpl
Immutable typed handle identifying a channel in a
MessagingGraph.
A channel handle does not own topology or lifecycle. Register it with a graph and use
MessagingGraph.emitter(io.helidon.messaging.MessagingChannel) for imperative emission.
Close the graph to release its channel resources.
The runtime's managed channels also implement this interface.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forMessagingChannel.static classMessagingChannel.BuilderBase<T, BUILDER extends MessagingChannel.BuilderBase<T, BUILDER, PROTOTYPE>, PROTOTYPE extends MessagingChannel<T>>Fluent API builder base forMessagingChannel. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> MessagingChannel.Builder<T> builder()Create a new fluent API builder to customize configuration.static <T> MessagingChannel.Builder<T> builder(MessagingChannel<T> instance) Create a new fluent API builder from an existing instance.static <T> MessagingChannel<T> create(String name, GenericType<T> payloadType) Create a channel handle preserving the complete payload type.static <T> MessagingChannel<T> Create a typed channel handle.name()Channel name.Complete channel payload type.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Type Parameters:
T- payload type- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Type Parameters:
T- payload type- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a typed channel handle.- Type Parameters:
T- payload type- Parameters:
name- channel namepayloadType- payload type- Returns:
- channel handle
-
create
Create a channel handle preserving the complete payload type.- Type Parameters:
T- payload type- Parameters:
name- channel namepayloadType- payload type- Returns:
- channel handle
-
name
-
payloadType
-