Class ChannelBuildItem
- java.lang.Object
-
- io.quarkus.builder.item.BuildItem
-
- io.quarkus.builder.item.MultiBuildItem
-
- io.quarkus.smallrye.reactivemessaging.deployment.items.ChannelBuildItem
-
public final class ChannelBuildItem extends io.quarkus.builder.item.MultiBuildItemRepresents an application channel. These channels can be declared using@Incoming,@Outgoingor injectedEmitter, and@Channel.
-
-
Constructor Summary
Constructors Constructor Description ChannelBuildItem(String name, ChannelDirection direction, String connector)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConnector()ChannelDirectiongetDirection()StringgetName()static ChannelBuildItemincoming(String name, String connector)Creates a new instance ofChannelBuildItemfor an incoming channel.booleanisManagedByAConnector()static ChannelBuildItemoutgoing(String name, String connector)Creates a new instance ofChannelBuildItemfor an outgoing channel.
-
-
-
Constructor Detail
-
ChannelBuildItem
ChannelBuildItem(String name, ChannelDirection direction, String connector)
-
-
Method Detail
-
incoming
public static ChannelBuildItem incoming(String name, String connector)
Creates a new instance ofChannelBuildItemfor an incoming channel.- Parameters:
name- the name of the channelconnector- the connector managing this channel if any.- Returns:
- the new
ChannelBuildItem
-
outgoing
public static ChannelBuildItem outgoing(String name, String connector)
Creates a new instance ofChannelBuildItemfor an outgoing channel.- Parameters:
name- the name of the channelconnector- the connector managing this channel if any.- Returns:
- the new
ChannelBuildItem
-
getName
public String getName()
-
isManagedByAConnector
public boolean isManagedByAConnector()
-
getConnector
public String getConnector()
-
getDirection
public ChannelDirection getDirection()
-
-