public NotifyTemplateHolder(IServerTypeDesc typeDesc, ITemplatePacket template,
String uid, long expirationTime, long eventId,
NotifyInfo info, boolean isFifo) {
super(typeDesc, template, uid, expirationTime, null , 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());
}