Пример #1
0
  public TimelineResult getEvents(
      Set<String> types, Set<String> subtypes, Integer from, Integer count, TimelineFilter filter) {
    int cnt = count != null ? count : DEFAULT_PAGE_SIZE;

    if (from != null) {
      return nexusTimeline.retrieve(from, cnt, types, subtypes, filter);
    } else {
      return nexusTimeline.retrieve(0, cnt, types, subtypes, filter);
    }
  }
Пример #2
0
 protected void addToTimeline(Map<String, String> map, String t1, String t2) {
   nexusTimeline.add(System.currentTimeMillis(), t1, t2, map);
 }