次の方法で共有


PartnerTopicRoutingMode Class

public final class PartnerTopicRoutingMode
extends ExpandableStringEnum<PartnerTopicRoutingMode>

This determines if events published to this partner namespace should use the source attribute in the event payload or use the channel name in the header when matching to the partner topic. If none is specified, source attribute routing will be used to match the partner topic.

Field Summary

Modifier and Type Field and Description
static final PartnerTopicRoutingMode CHANNEL_NAME_HEADER

Static value ChannelNameHeader for PartnerTopicRoutingMode.

static final PartnerTopicRoutingMode SOURCE_EVENT_ATTRIBUTE

Static value SourceEventAttribute for PartnerTopicRoutingMode.

Constructor Summary

Constructor Description
PartnerTopicRoutingMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PartnerTopicRoutingMode value.

Method Summary

Modifier and Type Method and Description
static PartnerTopicRoutingMode fromString(String name)

Creates or finds a PartnerTopicRoutingMode from its string representation.

static Collection<PartnerTopicRoutingMode> values()

Gets known PartnerTopicRoutingMode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CHANNEL_NAME_HEADER

public static final PartnerTopicRoutingMode CHANNEL_NAME_HEADER

Static value ChannelNameHeader for PartnerTopicRoutingMode.

SOURCE_EVENT_ATTRIBUTE

public static final PartnerTopicRoutingMode SOURCE_EVENT_ATTRIBUTE

Static value SourceEventAttribute for PartnerTopicRoutingMode.

Constructor Details

PartnerTopicRoutingMode

@Deprecated
public PartnerTopicRoutingMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PartnerTopicRoutingMode value.

Method Details

fromString

public static PartnerTopicRoutingMode fromString(String name)

Creates or finds a PartnerTopicRoutingMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PartnerTopicRoutingMode.

values

public static Collection<PartnerTopicRoutingMode> values()

Gets known PartnerTopicRoutingMode values.

Returns:

known PartnerTopicRoutingMode values.

Applies to