/** * Create a persistent {@link SessionBytesStoreSupplier}. * @param name name of the store (cannot be {@code null}) * @param retentionPeriod length ot time to retain data in the store (cannot be negative) * Note that the retention period must be at least long enough to contain the * windowed data's entire life cycle, from window-start through window-end, * and for the entire grace period. * @return an instance of a {@link SessionBytesStoreSupplier} */ @SuppressWarnings("deprecation") public static SessionBytesStoreSupplier persistentSessionStore(final String name, final Duration retentionPeriod) { ApiUtils.validateMillisecondDuration(retentionPeriod, "retentionPeriod"); return persistentSessionStore(name, retentionPeriod.toMillis()); }
+ " retention=[" + retentionPeriod + "]"); supplier = Stores.persistentSessionStore( materialized.storeName(), retentionPeriod
break; case SESSION: builder = Stores.sessionStoreBuilder(Stores.persistentSessionStore(spec.getName(), spec.getRetention()), keySerde, valueSerde); break; default: