@Override public void preInitialize() { Set<String> allGatewaySenderIds = getAllGatewaySenderIds(); if (!allGatewaySenderIds.isEmpty()) { for (GatewaySender sender : this.cache.getAllGatewaySenders()) { if (sender.isParallel() && allGatewaySenderIds.contains(sender.getId())) { // Once decided to support REPLICATED regions with parallel // gateway-sender/asynchronous-event-queue, ShadowPartitionedRegionForUserRR should be // called and this validation should be removed. if (sender.getId().contains(AsyncEventQueueImpl.ASYNC_EVENT_QUEUE_PREFIX)) { throw new AsyncEventQueueConfigurationException( String.format( "Parallel Async Event Queue %s can not be used with replicated region %s", AsyncEventQueueImpl.getAsyncEventQueueIdFromSenderId(sender.getId()), this.getFullPath())); } else { throw new GatewaySenderConfigurationException( String.format( "Parallel gateway sender %s can not be used with replicated region %s", sender.getId(), this.getFullPath())); } } } } }
throw new AsyncEventQueueConfigurationException( String.format("AsyncEventQueue %s can not be created with dispatcher threads less than 1", id)); if (gatewaySenderAttributes.getOrderPolicy() != null && gatewaySenderAttributes.getOrderPolicy().equals(OrderPolicy.THREAD)) { throw new AsyncEventQueueConfigurationException( String.format( "AsyncEventQueue %s can not be created with OrderPolicy %s when it is set parallel",
throw new AsyncEventQueueConfigurationException( String.format( "Parallel Async Event Queue %s can not be used with replicated region %s",
throw new AsyncEventQueueConfigurationException( String.format("AsyncEventQueue %s can not be created with dispatcher threads less than 1", id)); if ((this.attrs.getOrderPolicy() != null) && this.attrs.getOrderPolicy().equals(OrderPolicy.THREAD)) { throw new AsyncEventQueueConfigurationException( String.format( "AsyncEventQueue %s can not be created with OrderPolicy %s when it is set parallel",