Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class AccountantKafkaConfig {
props[ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG] = StringDeserializer::class.java
props[ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG] = JsonDeserializer::class.java
props[JsonDeserializer.TRUSTED_PACKAGES] = "co.nilin.opex.*"
props[JsonDeserializer.TYPE_MAPPINGS] = "order_request:co.nilin.opex.accountant.ports.kafka.listener.inout.OrderSubmitRequest"
return props
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class OrderKafkaConfig {
props[ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG] = StringDeserializer::class.java
props[ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG] = JsonDeserializer::class.java
props[JsonDeserializer.TRUSTED_PACKAGES] = "co.nilin.opex.*"
props[JsonDeserializer.TYPE_MAPPINGS] = "order_request:co.nilin.opex.matching.engine.ports.kafka.listener.inout.OrderSubmitRequest"
return props
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class OrderSubmitRequest() {
var matchConstraint: MatchConstraint = MatchConstraint.GTC
var orderType: OrderType = OrderType.LIMIT_ORDER


constructor(
ouid: String,
uuid: String,
Expand All @@ -39,6 +38,4 @@ class OrderSubmitRequest() {
this.matchConstraint = matchConstraint
this.orderType = orderType
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class OrderKafkaConfig {
props[ProducerConfig.BOOTSTRAP_SERVERS_CONFIG] = bootstrapServers
props[ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG] = StringSerializer::class.java
props[ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG] = JsonSerializer::class.java
props[JsonSerializer.TYPE_MAPPINGS] = "order_request:co.nilin.opex.matching.gateway.ports.kafka.submitter.inout.OrderSubmitRequest"
return props
}

Expand Down