public class FileBasedPersistentProvider extends PersistentProvider
Modifier and Type | Field and Description |
---|---|
protected AtomicLong |
counter |
protected static String |
NEW_REQUESTS_PATH |
protected static String |
NEW_REQUESTS_TEMP_PATH |
bufferLimit, DEFAULT_BUFFER_LIMIT
Constructor and Description |
---|
FileBasedPersistentProvider(long bufferLimit,
String filePath) |
FileBasedPersistentProvider(String filePath) |
Modifier and Type | Method and Description |
---|---|
long |
generateId() |
void |
offer(ProcessingRequest request) |
ProcessingRequest |
poll() |
protected static final String NEW_REQUESTS_PATH
protected static final String NEW_REQUESTS_TEMP_PATH
protected final AtomicLong counter
public FileBasedPersistentProvider(String filePath)
public FileBasedPersistentProvider(long bufferLimit, String filePath)
public long generateId()
generateId
in class PersistentProvider
public void offer(ProcessingRequest request)
offer
in class PersistentProvider
public ProcessingRequest poll()
poll
in class PersistentProvider
Copyright © 2020 (C) Cumulocity GmbH. All rights reserved.