use of com.hazelcast.client.impl.protocol.task.dynamicconfig.QueueStoreConfigHolder in project hazelcast by hazelcast.
the class ClientDynamicClusterConfig method addQueueConfig.
@Override
public Config addQueueConfig(QueueConfig queueConfig) {
List<ListenerConfigHolder> listenerConfigs = adaptListenerConfigs(queueConfig.getItemListenerConfigs());
QueueStoreConfigHolder queueStoreConfigHolder = QueueStoreConfigHolder.of(queueConfig.getQueueStoreConfig(), serializationService);
ClientMessage request = DynamicConfigAddQueueConfigCodec.encodeRequest(queueConfig.getName(), listenerConfigs, queueConfig.getBackupCount(), queueConfig.getAsyncBackupCount(), queueConfig.getMaxSize(), queueConfig.getEmptyQueueTtl(), queueConfig.isStatisticsEnabled(), queueConfig.getSplitBrainProtectionName(), queueStoreConfigHolder, queueConfig.getMergePolicyConfig().getPolicy(), queueConfig.getMergePolicyConfig().getBatchSize(), queueConfig.getPriorityComparatorClassName());
invoke(request);
return this;
}
Aggregations