Interface SolaceTopicProfile
-
public interface SolaceTopicProfileASolaceTopicProfileis a collection ofSolaceTopicArtifactMappinginstances. It provides methods to add, remove, and retrieve mappings.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(SolaceTopicArtifactMapping mapping)Adds aSolaceTopicArtifactMappingto theSolaceTopicProfile.voidclear()Removes all mappings from the profile.static SolaceTopicProfilecreate()Creates an emptySolaceTopicProfileinstance.List<SolaceTopicArtifactMapping>getMappings()Returns an independent ordered list ofSolaceTopicArtifactMappinginstances.SolaceTopicArtifactMappingremove(int index)Removes aSolaceTopicArtifactMappingat the specified index.SolaceTopicArtifactMappingremove(SolaceTopicArtifactMapping mapping)Removes the specifiedSolaceTopicArtifactMapping.SolaceTopicArtifactMappingremove(String topicExpression)Removes the firstSolaceTopicArtifactMappingthat matches the given topic expression.
-
-
-
Method Detail
-
create
static SolaceTopicProfile create()
Creates an emptySolaceTopicProfileinstance.- Returns:
- A new SolaceTopicProfile instance
-
add
void add(SolaceTopicArtifactMapping mapping)
Adds aSolaceTopicArtifactMappingto theSolaceTopicProfile.- Parameters:
mapping- TheSolaceTopicArtifactMappingto add- Throws:
IllegalArgumentException- if theSolaceTopicArtifactMappingis null
-
remove
SolaceTopicArtifactMapping remove(int index)
Removes aSolaceTopicArtifactMappingat the specified index.- Parameters:
index- The index of the mapping to remove- Returns:
- The removed
SolaceTopicArtifactMapping - Throws:
IllegalArgumentException- if the index is invalid
-
remove
SolaceTopicArtifactMapping remove(String topicExpression)
Removes the firstSolaceTopicArtifactMappingthat matches the given topic expression.- Parameters:
topicExpression- The topic expression to match- Returns:
- The removed
SolaceTopicArtifactMapping, or null if not found
-
remove
SolaceTopicArtifactMapping remove(SolaceTopicArtifactMapping mapping)
Removes the specifiedSolaceTopicArtifactMapping.- Parameters:
mapping- TheSolaceTopicArtifactMappingto remove- Returns:
- The removed
SolaceTopicArtifactMapping, or null if not found
-
clear
void clear()
Removes all mappings from the profile.
-
getMappings
List<SolaceTopicArtifactMapping> getMappings()
Returns an independent ordered list ofSolaceTopicArtifactMappinginstances.- Returns:
- A List of
SolaceTopicArtifactMappinginstances
-
-