public boolean isPrimary() { return sender.isParallel() || this.isPrimary; }
@Override public boolean waitUntilFlushed(long timeout, TimeUnit unit) throws InterruptedException { boolean result = false; if (isParallel()) { try { WaitUntilParallelGatewaySenderFlushedCoordinator coordinator = new WaitUntilParallelGatewaySenderFlushedCoordinator(this, timeout, unit, true); result = coordinator.waitUntilFlushed(); } catch (BucketMovedException | CancelException | RegionDestroyedException e) { logger.warn( "Caught the following exception attempting waitUntilFlushed and will retry:", e); throw e; } catch (Throwable t) { logger.warn( "Caught the following exception attempting waitUntilFlushed and will return:", t); throw new InternalGemFireError(t); } return result; } else { // Serial senders are currently not supported throw new UnsupportedOperationException( "waitUntilFlushed is not currently supported for serial gateway senders"); } }
sp.Id, sp.remoteDSId, sender.remoteDSId)); if (sp.isParallel && !sender.isParallel()) { throw new IllegalStateException( String.format( sp.Id)); if (!sp.isParallel && sender.isParallel()) { throw new IllegalStateException( String.format( sp.Id, sp.alertThreshold, sender.getAlertThreshold())); if (!sender.isParallel()) { if (sp.manualStart != sender.isManualStart()) { throw new IllegalStateException(
if (this.getSender().isParallel() && (this.getDispatcher() instanceof GatewaySenderEventCallbackDispatcher)) { Iterator<GatewaySenderEventImpl> itr = filteredList.iterator();
if (this.sender.isParallel()) {
if (!this.sender.isParallel()) { if (this.connection == null || this.connection.isDestroyed() || !this.connection.getServer().equals(this.sender.getServerLocation())) {