I am using CosmosDb for a project, and was first trying the Document-db java SQL API. With that API I can set item-level TTLs right on the Document itself. Ex.
Document document = new Document(new Gson().toJson(testObject));
document.setTimeToLive(10); // Time to live 10 seconds
documentClient.createDocument(documentCollection.getSelfLink(), document, null,
false).getResource();
However, I am also interested in using the Table API. I could not find anything in the documentation about setting item-level TTL. https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-java I am using https://github.com/Azure/azure-storage-java version 8.0.0 https://mvnrepository.com/artifact/com.microsoft.azure/azure-storage
Is it possible to do this, or at least set a server-side TTL for all items in a table? Thanks!