THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
No Format |
---|
/** * The number of segments the store has. If your store is segmented then this should be the number of segments * in the underlying store. * It is also used to reduce the amount of data that is scanned when caching is enabled. * * @return number of segments * @deprecated since 2.1. Use {@link WindowBytesStoreSupplier#segmentSizeWindowBytesStoreSupplier#segmentInterval()} instead. */ @Deprecated int segments(); /** * The size of the segments (in milliseconds) the store has. * If your store is segmented then this should be the size of segments in the underlying store. * It is also used to reduce the amount of data that is scanned when caching is enabled. * * @return size of the segments (in milliseconds) */ long segmentSizesegmentInterval(); |
In Windows, we will:
- make segments a private field (potentially breaking change)
- add a public segmentInterval() method
- deprecate segments(int)
No Format |
---|
- public int segments;
+ private int segments = 3;
+ /**
+ * Return the segment interval in milliseconds.
+ *
+ * @return the segment interval
+ */
+ public long segmentInterval();
/**
* Set the number of segments to be used for rolling the window store.
* This function is not exposed to users but can be called by developers that extend this class.
*
* @param segments the number of segments to be used
* @return itself
* @throws IllegalArgumentException if specified segments is small than 2
+ * @deprecated since 2.1 Override segmentInterval() instead.
*/
+ @Deprecated
protected Windows<W> segments(final int segments) throws IllegalArgumentException; |
In Stores, we will:
- deprecate persistentWindowStore() that takes numSegments
- add persistentWindowStore() that takes segmentInterval
- add persistentWindowStore() that doesn't parameterize segments
...