Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public abstract class EventProcessorBuilder implements ComponentConfigurer<Event
public static final long DEFAULT_CAPACITY_BYTES = 20L * 1024 * 1024;

/**
* The default value for {@link #maxAgeMillis(long)}: 7 days.
* The default value for {@link #maxAgeMillis(long)}: 24 hours.
*/
public static final long DEFAULT_MAX_AGE_MILLIS = 7L * 24 * 60 * 60 * 1000;
public static final long DEFAULT_MAX_AGE_MILLIS = 24L * 60 * 60 * 1000;

/**
* All attributes should be treated as private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public void keepsABatchYoungerThanTheMaximumAge() {
EventStore store = environmentStore(MOBILE_KEY);
stageFrames(store, 1);
store.closeBatch();
age(onlyBatchFile(store), 6);
assertTrue(onlyBatchFile(store).setLastModified(System.currentTimeMillis() - TimeUnit.HOURS.toMillis(12)));

assertEquals(0, store.discardExpired());
assertEquals(1, store.pendingBatches().size());
Expand Down
Loading