Skip to content

core.SchemaPool

Narciso edited this page Mar 17, 2020 · 1 revision

SchemaPool.addList

Add a list of schemas to pool

Pool.addList = function(list){
 // logic
}

SchemaPool.add

Add a schema to pool, this mechanism has logic to fetch schemas form registry

Pool.add = function(topic){
 // logic
}

SchemaPool.set

Set schema to pool, this mechanism will only set the schema to pool ( map ) : NO fetch

Pool.set = function(topic){
 // logic
}

SchemaPool.getById

fetch schema from registry by id then set on pool

Pool.getById = function(topic){
 // logic
}

SchemaPool.getByName

fetch schema from registry by name then set on pool

Pool.getByName = function(topic){
 // logic
}

Clone this wiki locally