Skip to content

Commit a2ae0e0

Browse files
yzhdanovgkoberger
authored andcommitted
Automatic commit from ReadMe
1 parent 0d96955 commit a2ae0e0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Diff for: distributed-data-structures/queue-and-set.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Here is an example of how a job could be send directly to the node on which a qu
6666
{
6767
"codes": [
6868
{
69-
"code": "Ignite ignite = Ignition.ignite();\n\nCollectionConfiguration colCfg = new CollectionConfiguration();\n\ncolCfg.setCollocated(true); \n\ncolCfg.setCacheName(\"cacheName\");\n\nfinal IgniteQueue<String> queue = ignite.queue(\"queueName\", 20, colCfg);\n \n// Add queue elements (queue is cached on some node).\nfor (int i = 0; i < 20; i++)\n queue.add(\"Value \" + Integer.toString(i));\n \nIgniteRunnable queuePoller = new IgniteRunnable() {\n @Override public void run() throws IgniteException {\n // Poll is local operation due to collocation.\n for (int i = 0; i < 20; i++)\n System.out.println(\"Polled element: \" + queue.poll());\n }\n};\n\n// Drain queue on the node where the queue is cached.\nignite.compute().affinityRun(\"cacheName\", \"queueName\", queuePoller);",
69+
"code": "Ignite ignite = Ignition.ignite();\n\nCollectionConfiguration colCfg = new CollectionConfiguration();\n\ncolCfg.setCollocated(true); \n\nfinal IgniteQueue<String> queue = ignite.queue(\"queueName\", 20, colCfg);\n \n// Add queue elements (queue is cached on some node).\nfor (int i = 0; i < 20; i++)\n queue.add(\"Value \" + Integer.toString(i));\n \nIgniteRunnable queuePoller = new IgniteRunnable() {\n @Override public void run() throws IgniteException {\n // Poll is local operation due to collocation.\n for (int i = 0; i < 20; i++)\n System.out.println(\"Polled element: \" + queue.poll());\n }\n};\n\n// Drain queue on the node where the queue is cached.\nignite.compute().affinityRun(\"cacheName\", \"queueName\", queuePoller);",
7070
"language": "java",
7171
"name": "Queue"
7272
}
@@ -102,15 +102,12 @@ Ignite collections can be in configured in API via `CollectionConfiguration` (se
102102
"data": {
103103
"h-0": "Setter Method",
104104
"0-0": "`setCollocated(boolean)`",
105-
"1-0": "`setCacheName(String)`",
106105
"h-1": "Description",
107106
"h-2": "Default",
108107
"0-2": "false",
109-
"0-1": "Sets collocation mode.",
110-
"1-1": "Set name of the cache to store this collection.",
111-
"1-2": "null"
108+
"0-1": "Sets collocation mode."
112109
},
113110
"cols": 3,
114-
"rows": 2
111+
"rows": 1
115112
}
116113
[/block]

0 commit comments

Comments
 (0)