Interface SolaceTopicProfile
-
public interface SolaceTopicProfile
ASolaceTopicProfile
is a collection ofSolaceTopicArtifactMapping
instances. It provides methods to add, remove, and retrieve mappings.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(SolaceTopicArtifactMapping mapping)
Adds aSolaceTopicArtifactMapping
to theSolaceTopicProfile
.void
clear()
Removes all mappings from the profile.static SolaceTopicProfile
create()
Creates an emptySolaceTopicProfile
instance.List<SolaceTopicArtifactMapping>
getMappings()
Returns an independent ordered list ofSolaceTopicArtifactMapping
instances.SolaceTopicArtifactMapping
remove(int index)
Removes aSolaceTopicArtifactMapping
at the specified index.SolaceTopicArtifactMapping
remove(SolaceTopicArtifactMapping mapping)
Removes the specifiedSolaceTopicArtifactMapping
.SolaceTopicArtifactMapping
remove(String topicExpression)
Removes the firstSolaceTopicArtifactMapping
that matches the given topic expression.
-
-
-
Method Detail
-
create
static SolaceTopicProfile create()
Creates an emptySolaceTopicProfile
instance.- Returns:
- A new SolaceTopicProfile instance
-
add
void add(SolaceTopicArtifactMapping mapping)
Adds aSolaceTopicArtifactMapping
to theSolaceTopicProfile
.- Parameters:
mapping
- TheSolaceTopicArtifactMapping
to add- Throws:
IllegalArgumentException
- if theSolaceTopicArtifactMapping
is null
-
remove
SolaceTopicArtifactMapping remove(int index)
Removes aSolaceTopicArtifactMapping
at 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 firstSolaceTopicArtifactMapping
that 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
- TheSolaceTopicArtifactMapping
to 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 ofSolaceTopicArtifactMapping
instances.- Returns:
- A List of
SolaceTopicArtifactMapping
instances
-
-