public interface RolloverStrategyConfigurer extends AnnotationConfigurerBuilder<DataStoreTextWriterConfigurer>
AnnotationConfigurerBuilder
for configuring a rollover strategy.
Typically configuration is shown below.
@Configuration @EnableDataStoreTextWriter static class Config extends SpringDataStoreTextWriterConfigurerAdapter { @Override public void configure(DataStoreTextWriterConfigurer writer) throws Exception { writer .withRolloverStrategy() .size("1M"); } }
Modifier and Type | Method and Description |
---|---|
RolloverStrategyConfigurer |
size(long size)
Specify a rollover size in bytes.
|
RolloverStrategyConfigurer |
size(java.lang.String size)
Specify a rollover size.
|
and
RolloverStrategyConfigurer size(long size)
public void configure(DataStoreTextWriterConfigurer writer) throws Exception { writer .withRolloverStrategy() .size(10000); }
size
- the sizeRolloverStrategyConfigurer
for chainingRolloverStrategyConfigurer size(java.lang.String size)
public void configure(DataStoreTextWriterConfigurer writer) throws Exception { writer .withRolloverStrategy() .size("1M"); }
size
- the sizeRolloverStrategyConfigurer
for chaining