sync/src/partition/partitionconfig.js

28 lines
439 B
JavaScript
Raw Normal View History

2016-06-06 21:54:49 -07:00
class PartitionConfig {
constructor(config) {
this.config = config;
}
getPartitionMap() {
return this.config.partitions;
}
getOverrideMap() {
return this.config.overrides;
}
getPool() {
return this.config.pool;
}
getIdentity() {
return this.config.identity;
}
2016-06-09 23:42:30 -07:00
getRedisConfig() {
return this.config.redis;
}
2016-06-06 21:54:49 -07:00
}
export { PartitionConfig };