Package net.easymodo.asagi.model

Examples of net.easymodo.asagi.model.DeletedPost


                if(!markDeleted) return true;

                changed = true;
                oldTopic.getAllPosts().remove(num);

                DeletedPost post = new DeletedPost(num, System.currentTimeMillis() / 1000);
                deletedPosts.add(post);

                debug(TALK, num + " (post): deleted");
            }
            if(i == 0) i = newTopic.getOmPosts();
View Full Code Here


    protected class PostDeleter implements Runnable {
        @Override
        @SuppressWarnings("InfiniteLoopStatement")
        public void run() {
            while(true) {
                DeletedPost deletedPost;

                try {
                    deletedPost = deletedPosts.take();
                } catch(InterruptedException e) { continue; }
View Full Code Here

                           // threshold, then it was forcefully deleted
                           if(oldTopic.getLastPage() < pageLimbo) {
                               if(oldTopic.getAllPosts().size() > 1) {
                                   int op = oldTopic.getAllPosts().iterator().next();
                                   try {
                                       DeletedPost post = new DeletedPost(op, System.currentTimeMillis() / 1000);
                                       deletedPosts.put(post);
                                   } catch(InterruptedException e1) { }
                               }
                               topicUpdates.add(oldTopic);
                               debug(TALK, newTopic + ": deleted (last seen on page " + oldTopic.getLastPage() + ")");
View Full Code Here

TOP

Related Classes of net.easymodo.asagi.model.DeletedPost

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.