Package de.fu_berlin.inf.dpp.net

Examples of de.fu_berlin.inf.dpp.net.TimedActivityDataObject


         * created activityDataObjects.
         **/
        public TimedActivityDataObject createTimedActivity(
            IActivityDataObject activityDataObject) {

            TimedActivityDataObject result = new TimedActivityDataObject(
                activityDataObject, localJID, nextSequenceNumber++);
            history.add(result);
            return result;
        }
View Full Code Here


            if (!queuedActivities.isEmpty()
                && queuedActivities.peek().getSequenceNumber() == expectedSequenceNumber) {

                expectedSequenceNumber++;
                TimedActivityDataObject result = queuedActivities.remove();
                updateOldestLocalTimestamp();
                return result;
            }
            return null;
        }
View Full Code Here

            // Discard all activityDataObjects which we are no longer waiting
            // for
            while (firstQueuedSequenceNumber < expectedSequenceNumber) {

                TimedActivityDataObject activity = queuedActivities.remove();

                log.error("Expected activityDataObject #"
                    + expectedSequenceNumber
                    + " but an older activityDataObject is still in the queue"
                    + " and will be dropped (#" + firstQueuedSequenceNumber
View Full Code Here

            checkForMissingActivities();

            ArrayList<TimedActivityDataObject> result = new ArrayList<TimedActivityDataObject>();

            TimedActivityDataObject activity;
            while ((activity = removeNext()) != null) {
                result.add(activity);
            }

            return result;
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.net.TimedActivityDataObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.