Search in sources :

Example 1 with QueueStoreFactory

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;
}
Also used : QueueStoreConfig(com.hazelcast.config.QueueStoreConfig) QueueStore(com.hazelcast.collection.QueueStore) QueueStoreFactory(com.hazelcast.collection.QueueStoreFactory)

Aggregations

QueueStore (com.hazelcast.collection.QueueStore)1 QueueStoreFactory (com.hazelcast.collection.QueueStoreFactory)1 QueueStoreConfig (com.hazelcast.config.QueueStoreConfig)1