});
}
}
+
/**
* Returns a post reply builder.
*
knownSones.add(friend);
}
}
+ synchronized (this.posts) {
+ for (Post post : posts) {
+ this.posts.put(post.getId(), post);
+ }
+ }
synchronized (knownPosts) {
for (Post post : posts) {
knownPosts.add(post.getId());
}
}
+ synchronized (this.replies) {
+ for (PostReply postReply : replies) {
+ this.replies.put(postReply.getId(), postReply);
+ }
+ }
synchronized (knownReplies) {
for (PostReply reply : replies) {
knownReplies.add(reply.getId());
/**
* Loads the configuration.
*/
- @SuppressWarnings("unchecked")
private void loadConfiguration() {
/* create options. */
options.addIntegerOption("InsertionDelay", new DefaultOption<Integer>(60, new IntegerRangePredicate(0, Integer.MAX_VALUE), new OptionWatcher<Integer>() {