Class FileBasedPersistentProvider
- java.lang.Object
-
- com.cumulocity.sdk.client.buffering.PersistentProvider
-
- com.cumulocity.sdk.client.buffering.FileBasedPersistentProvider
-
public class FileBasedPersistentProvider extends PersistentProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected AtomicLong
counter
protected static String
NEW_REQUESTS_PATH
protected static String
NEW_REQUESTS_TEMP_PATH
-
Fields inherited from class com.cumulocity.sdk.client.buffering.PersistentProvider
bufferLimit, DEFAULT_BUFFER_LIMIT
-
-
Constructor Summary
Constructors Constructor Description FileBasedPersistentProvider(long bufferLimit, String filePath)
FileBasedPersistentProvider(String filePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
generateId()
void
offer(ProcessingRequest request)
ProcessingRequest
poll()
-
-
-
Field Detail
-
NEW_REQUESTS_PATH
protected static final String NEW_REQUESTS_PATH
- See Also:
- Constant Field Values
-
NEW_REQUESTS_TEMP_PATH
protected static final String NEW_REQUESTS_TEMP_PATH
- See Also:
- Constant Field Values
-
counter
protected final AtomicLong counter
-
-
Method Detail
-
generateId
public long generateId()
- Specified by:
generateId
in classPersistentProvider
-
offer
public void offer(ProcessingRequest request)
- Specified by:
offer
in classPersistentProvider
-
poll
public ProcessingRequest poll()
- Specified by:
poll
in classPersistentProvider
-
-