Skip to content

Commit af8f63d

Browse files
committed
Adding tabs
1 parent a8e6cff commit af8f63d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ mvn clean package
8686

8787
# [Java SDK 4.0](#tab/v4sdk)
8888

89-
**Java SDK 4.0**
9089
```java
9190
changeFeedProcessorInstance = getChangeFeedProcessor("SampleHost_1", feedContainer, leaseContainer);
9291
changeFeedProcessorInstance.start()
@@ -101,7 +100,6 @@ mvn clean package
101100
102101
# [Java SDK 3.7.0](#tab/v3sdk)
103102
104-
**Java SDK 3.7.0**
105103
```java
106104
changeFeedProcessorInstance = getChangeFeedProcessor("SampleHost_1", feedContainer, leaseContainer);
107105
changeFeedProcessorInstance.start()
@@ -114,7 +112,7 @@ mvn clean package
114112
while (!isProcessorRunning.get()); //Wait for Change Feed processor start
115113
```
116114
---
117-
115+
118116
```"SampleHost_1"``` is the name of the Change Feed processor worker. ```changeFeedProcessorInstance.start()``` is what actually starts the Change Feed processor.
119117
120118
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**.
@@ -125,7 +123,6 @@ mvn clean package
125123
126124
# [Java SDK 4.0](#tab/v4sdk)
127125
128-
**Java SDK 4.0**
129126
```java
130127
public static ChangeFeedProcessor getChangeFeedProcessor(String hostName, CosmosAsyncContainer feedContainer, CosmosAsyncContainer leaseContainer) {
131128
ChangeFeedProcessorOptions cfOptions = new ChangeFeedProcessorOptions();
@@ -153,7 +150,6 @@ mvn clean package
153150
154151
# [Java SDK 3.7.0](#tab/v3sdk)
155152
156-
**Java SDK 3.7.0**
157153
```java
158154
public static ChangeFeedProcessor getChangeFeedProcessor(String hostName, CosmosContainer feedContainer, CosmosContainer leaseContainer) {
159155
ChangeFeedProcessorOptions cfOptions = new ChangeFeedProcessorOptions();
@@ -196,7 +192,6 @@ mvn clean package
196192
197193
# [Java SDK 4.0](#tab/v4sdk)
198194
199-
**Java SDK 4.0**
200195
```java
201196
public static void deleteDocument() {
202197
@@ -225,7 +220,6 @@ mvn clean package
225220
```
226221
# [Java SDK 3.7.0](#tab/v3sdk)
227222
228-
**Java SDK 3.7.0**
229223
```java
230224
public static void deleteDocument() {
231225

0 commit comments

Comments
 (0)