class DeviceLatestDataServiceConfiguration {

        @Bean
        @ConfigurationProperties(prefix = "jetlinks.device.storage.latest.buffer")
        public BufferProperties deviceLatestDataServiceBufferProperties() {<FILL_FUNCTION_BODY>}

        @Bean(destroyMethod = "destroy")
        public DatabaseDeviceLatestDataService deviceLatestDataService(DatabaseOperator databaseOperator) {
            return new DatabaseDeviceLatestDataService(databaseOperator,
                                                       deviceLatestDataServiceBufferProperties());
        }

    }

            BufferProperties bufferProperties = new BufferProperties();
            bufferProperties.setFilePath("./data/device-latest-data-buffer");
            bufferProperties.setSize(1000);
            bufferProperties.setParallelism(1);
            bufferProperties.setTimeout(Duration.ofSeconds(1));
            return bufferProperties;
        
<no_super_class>