...
Jira Legacy | ||||||
---|---|---|---|---|---|---|
|
Steps
- Consume Event
- Check if dataCategory is 'CM'
- log consumption
- Check scheme
- Create object
Consumer Pseudo Code
Code Block | ||||
---|---|---|---|---|
| ||||
public class SubscriptionCreatedEventConsumer {
public void consumeSubscriptionEvent(final SubscriptionCreatedEvent subscriptionCreatedEvent){
if(subscriptionCreatedEvent.dataCategory == 'CM'){ //Check dataCategory
log.debug(consuming event subscriptionCreatedEvent...);
if(checkFormat(subscriptionCreatedEvent)){ //Check format of message
Subscription createSubscription = new Subscription() //Create Object
log.debug(subscription created createSubscription)
}
}
}
public boolean checkFormat(SubscriptionCreatedEvent event){
//Determine when schema confirmed
}
}
|
Subscription Object
Code Block | ||||
---|---|---|---|---|
| ||||
String clientID
Stirng name
String subscriptionID = clientID+name
Boolean isTagged = default no
String dataspace
String dataCategory = necessary? should always be 'CM'
String dataProvidor
String schemeName
String schemaVersion
Collection persistence |
Issues & Decisions
# | Issue | Notes | Decision | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Subscription Event Scheme | Protocol : Kafka Event
| 2 | Consumer Pseudo Code |
Code Block | ||||
---|---|---|---|---|
| ||||
public class SubscriptionCreatedEventConsumer {
public void consumeSubscriptionEvent(final SubscriptionCreatedEvent subscriptionCreatedEvent){
if(subscriptionCreatedEvent.dataCategory == 'CM'){ //Check dataCategory
log.debug(consuming event subscriptionCreatedEvent...);
if(checkFormat(subscriptionCreatedEvent)){ //Check format of message
Subscription createSubscription = new Subscription() //Create Object
log.debug(subscription created createSubscription)
}
}
}
public boolean checkFormat(SubscriptionCreatedEvent event){
//Determine when schema confirmed
}
}
|
title | Object Parameters |
---|---|
collapse | true |