Skip to content

Commit a8e6cff

Browse files
committed
Adding tabs
1 parent eea1563 commit a8e6cff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

articles/cosmos-db/create-sql-api-java-changefeed.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ mvn clean package
8484

8585
Press enter. Now the following block of code will execute and initialize the Change Feed processor on another thread:
8686

87+
# [Java SDK 4.0](#tab/v4sdk)
8788

8889
**Java SDK 4.0**
8990
```java
@@ -98,6 +99,8 @@ mvn clean package
9899
while (!isProcessorRunning.get()); //Wait for Change Feed processor start
99100
```
100101
102+
# [Java SDK 3.7.0](#tab/v3sdk)
103+
101104
**Java SDK 3.7.0**
102105
```java
103106
changeFeedProcessorInstance = getChangeFeedProcessor("SampleHost_1", feedContainer, leaseContainer);
@@ -110,7 +113,8 @@ mvn clean package
110113
111114
while (!isProcessorRunning.get()); //Wait for Change Feed processor start
112115
```
113-
116+
---
117+
114118
```"SampleHost_1"``` is the name of the Change Feed processor worker. ```changeFeedProcessorInstance.start()``` is what actually starts the Change Feed processor.
115119
116120
Return to the Azure Portal Data Explorer in your browser. Under the **InventoryContainer-leases** container, click **items** to see its contents. You will see that Change Feed Processor has populated the lease container, i.e. the processor has assigned the ```SampleHost_1``` worker a lease on some partitions of the **InventoryContainer**.

0 commit comments

Comments
 (0)