Search in sources :

Example 1 with QueueStoreConfigHolder

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;
}
Also used : ListenerConfigHolder(com.hazelcast.client.impl.protocol.task.dynamicconfig.ListenerConfigHolder) QueueStoreConfigHolder(com.hazelcast.client.impl.protocol.task.dynamicconfig.QueueStoreConfigHolder) ClientMessage(com.hazelcast.client.impl.protocol.ClientMessage)

Aggregations

ClientMessage (com.hazelcast.client.impl.protocol.ClientMessage)1 ListenerConfigHolder (com.hazelcast.client.impl.protocol.task.dynamicconfig.ListenerConfigHolder)1 QueueStoreConfigHolder (com.hazelcast.client.impl.protocol.task.dynamicconfig.QueueStoreConfigHolder)1