(DomainParticipant participant)
| 58 | private boolean read; |
| 59 | |
| 60 | public MultiRepoWorker(DomainParticipant participant) { |
| 61 | assert (participant != null); |
| 62 | |
| 63 | this.participant = participant; |
| 64 | |
| 65 | MessageTypeSupport typeSupport = new MessageTypeSupportImpl(); |
| 66 | if (typeSupport.register_type(participant, "MultiRepo::Message") != RETCODE_OK.value) { |
| 67 | throw new IllegalStateException("Unable to register type!"); |
| 68 | } |
| 69 | |
| 70 | topic = participant.create_topic("MultiRepo::Topic", typeSupport.get_type_name(), |
| 71 | TOPIC_QOS_DEFAULT.get(), null, DEFAULT_STATUS_MASK.value); |
| 72 | |
| 73 | transportConfig = "" + ++transportId; |
| 74 | |
| 75 | assert (topic != null); |
| 76 | } |
| 77 | |
| 78 | public DomainParticipant getParticipant() { |
| 79 | return participant; |
nothing calls this directly
no test coverage detected