com.smartdevicelink.managers.file.FileManagerConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdl_java_se Show documentation
Show all versions of sdl_java_se Show documentation
The app library component of SDL is meant to run on the end userâs smart-device from within SDL enabled apps, as an embedded app, or connected to the cloud. App libraries allow the apps to connect to SDL enabled head-units and hardware through bluetooth, USB, and TCP for Android, and cloud and embedded apps can connect through web sockets, Java Beans, and other custom transports. Once the library establishes a connection between the smart device and head-unit through the preferred method of transport, the two components are able to communicate using the SDL defined protocol. The app integrating this library project is then able to expose its functionality to the head-unit through text, media, and other interactive elements.
package com.smartdevicelink.managers.file;
/**
* FileManagerConfig
*
* This is set during SdlManager instantiation.
*
*
artworkRetryCount - # of attempts allowed for SdlArtwork to be re-uploaded if they fail
*
* fileRetryCount - # of attempts allowed for SdlFiles to be re-uploaded if they fail
*/
public class FileManagerConfig {
private int artworkRetryCount, fileRetryCount;
/**
* Constructor for FileMangerConfig
* Sets artworkRetryCount and fileRetryCount to a default value of 1
*/
public FileManagerConfig() {
// set default values to 1 retry attempt
this.artworkRetryCount = 1;
this.fileRetryCount = 1;
}
/**
* Setter for Integer artWorkRetryCount
*
* @param artworkRetryCount the number of retry attempts
*/
public void setArtworkRetryCount(int artworkRetryCount) {
this.artworkRetryCount = artworkRetryCount;
}
/**
* Getter for Integer artWorkRetryCount
*
* @return Integer artworkRetryCount
*/
public int getArtworkRetryCount() {
return artworkRetryCount;
}
/**
* Setter for Integer fileRetryCount
*
* @param fileRetryCount the number of retry attempts
*/
public void setFileRetryCount(int fileRetryCount) {
this.fileRetryCount = fileRetryCount;
}
/**
* Getter for Integer fileRetryCount
*
* @return Integer fileRetryCount
*/
public int getFileRetryCount() {
return fileRetryCount;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy