@Override public FollowerService getFollowerService(boolean init) { if (init && (followerService == null)) followerService = new NFollowerService(ledger, id); return followerService; }
assertEquals(storage.expiresAt().toEpochSecond(), now.toEpochSecond()); NFollowerService followerService = Boss.load(Boss.pack(new NFollowerService(null, now, now, 1, 14.87, 3))); assertEquals(followerService.expiresAt().toEpochSecond(), now.toEpochSecond()); assertEquals(followerService.mutedAt().toEpochSecond(), now.toEpochSecond()); assertTrue(followerService.getCallbacksSpent() == 14.87); assertTrue(followerService.getStartedCallbacks() == 3);
fs = new NFollowerService(this, StateRecord.getTime(rs.getLong(1)), StateRecord.getTime(rs.getLong(2)),