public PartitionMessage(Collection<InternalDistributedMember> recipients, int regionId, ReplyProcessor21 processor, final TXStateInterface tx) { super(tx); setRecipients(recipients); this.regionId = regionId; this.processorId = processor == null ? 0 : processor.getProcessorId(); if (processor != null && this.isSevereAlertCompatible()) { processor.enableSevereAlertProcessing(); } }
public PartitionMessage(Collection<InternalDistributedMember> recipients, int regionId, ReplyProcessor21 processor) { setRecipients(recipients); this.regionId = regionId; this.processorId = processor==null? 0 : processor.getProcessorId(); if (processor != null && this.isSevereAlertCompatible()) { processor.enableSevereAlertProcessing(); } initTxMemberId(); setIfTransactionDistributed(); }
setRecipients(adjunctRecipients); failures1 = r.getDistributionManager().putOutgoing(this);
/** * relay this message to another set of recipients for event notification * @param cacheOpRecipients recipients of associated bucket CacheOperationMessage * @param adjunctRecipients recipients who unconditionally get the message * @param filterRoutingInfo routing information for all recipients * @param event the event causing this message * @param r the region being operated on * @param processor the reply processor to be notified */ public Set relayToListeners(Set cacheOpRecipients, Set adjunctRecipients, FilterRoutingInfo filterRoutingInfo, EntryEventImpl event, PartitionedRegion r, DirectReplyProcessor processor) { LogWriterI18n log = r.getCache().getLoggerI18n(); this.processorId = processor == null? 0 : processor.getProcessorId(); this.notificationOnly = true; if(!adjunctRecipients.isEmpty()) { resetRecipients(); this.setFilterInfo(filterRoutingInfo); setRecipients(adjunctRecipients); if (DistributionManager.VERBOSE) { log.fine("Relaying partition message to other processes for listener notification"); } return r.getDistributionManager().putOutgoing(this); } return null; }