use of com.hazelcast.collection.QueueStoreFactory in project hazelcast by hazelcast.
the class QueueStoreConfigHolder method asQueueStoreConfig.
public QueueStoreConfig asQueueStoreConfig(SerializationService serializationService) {
QueueStoreConfig config = new QueueStoreConfig();
if (!StringUtil.isNullOrEmptyAfterTrim(className)) {
config.setClassName(className);
}
config.setEnabled(enabled);
if (!StringUtil.isNullOrEmptyAfterTrim(factoryClassName)) {
config.setFactoryClassName(factoryClassName);
}
config.setProperties(PropertiesUtil.fromMap(properties));
QueueStore storeImplementation = serializationService.toObject(implementation);
if (storeImplementation != null) {
config.setStoreImplementation(storeImplementation);
}
QueueStoreFactory storeFactoryImplementation = serializationService.toObject(factoryImplementation);
if (storeFactoryImplementation != null) {
config.setFactoryImplementation(storeFactoryImplementation);
}
return config;
}
Aggregations