protected Object createObject() throws SAXException { return new NotificationResult(earliestSequenceNumber, nextSequenceNumber, targetedNotifications); } }
TargetedNotification[] targetedNotifications = (TargetedNotification[]) fetchedNotifications.toArray(new TargetedNotification[fetchedNotifications.size()]); result = new NotificationResult(clientSequenceNumber, currentSequence, targetedNotifications);
result = new NotificationResult(getFirstSequenceNumber(), sequence, new TargetedNotification[0]); RmiConnectorActivator.log(LogService.LOG_DEBUG,"First fetchNotification call: " + this + ", returning " + result, null); result = new NotificationResult(getFirstSequenceNumber(), sequenceNumber + size, notifications); RmiConnectorActivator.log(LogService.LOG_DEBUG,"Non-first fetchNotification call: " + this + ", returning " + result, null);
/** * * @param startSequenceNumber . * @param timeout . * @param maxNotifications . * @return . */ public NotificationResult fetchNotifs(final long startSequenceNumber, final long timeout, final int maxNotifications) { if (logger.traceOn()) logger.trace("fetchNotifs", "Fetching notifications, the " + "startSequenceNumber is " + startSequenceNumber + ", the timeout is " + timeout + ", the maxNotifications is " + maxNotifications); NotificationResult nr = null; final long t = Math.min(connectionTimeout, timeout); try { nr = notifBuffer.fetchNotifications(listenerList, startSequenceNumber, t, maxNotifications); } catch (@SuppressWarnings("unused") final InterruptedException ire) { nr = new NotificationResult(0L, 0L, new TargetedNotification[0]); } if (logger.traceOn())logger.trace("fetchNotifs", "Forwarding the notifs: " + nr); return nr; }
NotificationResult trialnr = new NotificationResult(0, 0, new TargetedNotification[] { tn }); try { serialization.wrap(trialnr); trialnr = new NotificationResult(0, 0, new TargetedNotification[] { tn }); try { serialization.wrap(trialnr); return new NotificationResult(nr.getEarliestSequenceNumber(), nr.getNextSequenceNumber(), tns);
if (startSequenceNumber < 0 || isDisposed()) { synchronized (this) { return new NotificationResult(earliestSequenceNumber(), nextSequenceNumber(), new TargetedNotification[0]); return new NotificationResult(earliestSequenceNumber(), nextSequenceNumber(), new TargetedNotification[0]); final NotificationResult nr = new NotificationResult(earliestSeq, nextSeq, resultNotifs); if (log.debugOn()) log.debug("fetchNotifications", nr.toString()); log.trace("fetchNotifications", "ends");