Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add interfaces for consumers and producers
- Loading branch information
Showing
8 changed files
with
77 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/com/hlag/tools/commvis/analyzer/model/IConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.hlag.tools.commvis.analyzer.model; | ||
|
||
/** | ||
* Indentifies an {@link ISenderReceiverCommunication} as a consumer of something. | ||
*/ | ||
public interface IConsumer { | ||
/** | ||
* | ||
* @param producer the producer tested | ||
* @return {@code true} if this consumer receives messages from the {@code producer}. | ||
*/ | ||
boolean isProducedBy(IProducer producer); | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/hlag/tools/commvis/analyzer/model/IProducer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.hlag.tools.commvis.analyzer.model; | ||
|
||
/** | ||
* Indentifies an {@link ISenderReceiverCommunication} as a producer of something. | ||
*/ | ||
public interface IProducer { | ||
String getDestinationProjectId(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters