public void validateModifiers() { if ((NotifyModifiers.isRematchedUpdate(_notifyType) || NotifyModifiers.isMatchedUpdate(_notifyType)) && NotifyModifiers.isUpdate(_notifyType)) throw new IllegalArgumentException(NotifyActionType.NOTIFY_MATCHED_UPDATE + " or " + NotifyActionType.NOTIFY_REMATCHED_UPDATE + " modifiers cannot be used with " + NotifyActionType.NOTIFY_UPDATE + " modifier for the same notify template"); }
@Override public String toString() { return NotifyModifiers.toString(modifier); }
/** * Return true whether this template should match by uid only (if such provided) or with full * match regardless present if uid. */ @Override public boolean isMatchByID() { return getUidToOperateBy() != null && NotifyModifiers.isMatchByID(getNotifyInfo().getNotifyType()); }
String subscribedTopicName = jmsOfflineStateDurSubDataEntry.m_topicName; if (NotifyModifiers.isLeaseExpiration(notifyType)) { if (_logger.isLoggable(Level.FINE)) { _logger.fine(" SubscriptionRemoteEventListener.notify() -- Lease has expired -- the durable subscriber went down. || -- "
public NotifyTemplateHolder(IServerTypeDesc typeDesc, ITemplatePacket template, String uid, long expirationTime, long eventId, NotifyInfo info, boolean isFifo) { super(typeDesc, template, uid, expirationTime, null /*txn*/, SystemTime.timeMillis(), SpaceOperations.NOTIFY, null, template.isReturnOnlyUids() | info.isReturnOnlyUids(), info.getModifiers(), isFifo); this._eventId = eventId; this._notifyInfo = info; this._generationTemplate = template.clone(); this._sequenceNumber = new AtomicLong(0); this._notifyInProgress = new AtomicBoolean(false); if (_notifyInfo.isBatching()) { _pendingBatchEvents = new ConcurrentLinkedQueue<EventHolder>(); _numPendingBatchEvents = new AtomicInteger(); } else { _pendingBatchEvents = null; _numPendingBatchEvents = null; } if (_logger.isLoggable(Level.FINE)) _logger.log(Level.FINE, "Created notify template: eventId=" + _eventId + ", templateUid=" + _notifyInfo.getTemplateUID() + ", type=[" + template.getTypeName() + "]" + ", notifyType=" + NotifyModifiers.toString(_notifyInfo.getNotifyType()) + ", fifo=" + _notifyInfo.isFifo() + ", prevValue=" + _notifyInfo.isReturnPrevValue()); }