|
6 | 6 | "actionsSet" : {
|
7 | 7 | "actions" : [ {
|
8 | 8 | "name" : "arrayPromise",
|
| 9 | + "javaMethodName" : "arrayPromise", |
| 10 | + "javaMethodType" : "PROMISE", |
| 11 | + "javaReturnsResultWrapper" : false, |
9 | 12 | "returns" : "{ \"type\" : \"array\", \"items\" : \"int\" }"
|
10 | 13 | }, {
|
11 | 14 | "name" : "customTypeRef",
|
| 15 | + "javaMethodName" : "customTypeRef", |
| 16 | + "javaMethodType" : "SYNC", |
| 17 | + "javaReturnsResultWrapper" : false, |
12 | 18 | "parameters" : [ {
|
13 | 19 | "name" : "customLong",
|
14 | 20 | "type" : "com.linkedin.restli.examples.typeref.api.CustomLongRef"
|
15 | 21 | } ],
|
16 | 22 | "returns" : "com.linkedin.restli.examples.typeref.api.CustomLongRef"
|
17 | 23 | }, {
|
18 | 24 | "name" : "echo",
|
| 25 | + "javaMethodName" : "echo", |
| 26 | + "javaMethodType" : "SYNC", |
| 27 | + "javaReturnsResultWrapper" : false, |
19 | 28 | "parameters" : [ {
|
20 | 29 | "name" : "input",
|
21 | 30 | "type" : "string"
|
22 | 31 | } ],
|
23 | 32 | "returns" : "string"
|
24 | 33 | }, {
|
25 | 34 | "name" : "echoMessage",
|
| 35 | + "javaMethodName" : "echoMessage", |
| 36 | + "javaMethodType" : "SYNC", |
| 37 | + "javaReturnsResultWrapper" : false, |
26 | 38 | "parameters" : [ {
|
27 | 39 | "name" : "message",
|
28 | 40 | "type" : "com.linkedin.restli.examples.greetings.api.Message"
|
29 | 41 | } ],
|
30 | 42 | "returns" : "com.linkedin.restli.examples.greetings.api.Message"
|
31 | 43 | }, {
|
32 | 44 | "name" : "echoMessageArray",
|
| 45 | + "javaMethodName" : "echoMessage", |
| 46 | + "javaMethodType" : "SYNC", |
| 47 | + "javaReturnsResultWrapper" : false, |
33 | 48 | "parameters" : [ {
|
34 | 49 | "name" : "messages",
|
35 | 50 | "type" : "{ \"type\" : \"array\", \"items\" : \"com.linkedin.restli.examples.greetings.api.Message\" }"
|
36 | 51 | } ],
|
37 | 52 | "returns" : "{ \"type\" : \"array\", \"items\" : \"com.linkedin.restli.examples.greetings.api.Message\" }"
|
38 | 53 | }, {
|
39 | 54 | "name" : "echoStringArray",
|
| 55 | + "javaMethodName" : "echoStringArray", |
| 56 | + "javaMethodType" : "SYNC", |
| 57 | + "javaReturnsResultWrapper" : false, |
40 | 58 | "parameters" : [ {
|
41 | 59 | "name" : "strings",
|
42 | 60 | "type" : "{ \"type\" : \"array\", \"items\" : \"string\" }"
|
43 | 61 | } ],
|
44 | 62 | "returns" : "{ \"type\" : \"array\", \"items\" : \"string\" }"
|
45 | 63 | }, {
|
46 | 64 | "name" : "echoToneArray",
|
| 65 | + "javaMethodName" : "echoToneArray", |
| 66 | + "javaMethodType" : "SYNC", |
| 67 | + "javaReturnsResultWrapper" : false, |
47 | 68 | "parameters" : [ {
|
48 | 69 | "name" : "tones",
|
49 | 70 | "type" : "{ \"type\" : \"array\", \"items\" : \"com.linkedin.restli.examples.greetings.api.Tone\" }"
|
50 | 71 | } ],
|
51 | 72 | "returns" : "{ \"type\" : \"array\", \"items\" : \"com.linkedin.restli.examples.greetings.api.Tone\" }"
|
52 | 73 | }, {
|
53 | 74 | "name" : "failCallbackCall",
|
| 75 | + "javaMethodName" : "failCall", |
| 76 | + "javaMethodType" : "ASYNC", |
| 77 | + "javaReturnsResultWrapper" : false, |
54 | 78 | "doc" : "Action that fails by calling the callback"
|
55 | 79 | }, {
|
56 | 80 | "name" : "failCallbackThrow",
|
| 81 | + "javaMethodName" : "failThrow", |
| 82 | + "javaMethodType" : "ASYNC", |
| 83 | + "javaReturnsResultWrapper" : false, |
57 | 84 | "doc" : "Action that fails by throwing an exception"
|
58 | 85 | }, {
|
59 | 86 | "name" : "failPromiseCall",
|
| 87 | + "javaMethodName" : "failPromiseCall", |
| 88 | + "javaMethodType" : "PROMISE", |
| 89 | + "javaReturnsResultWrapper" : false, |
60 | 90 | "doc" : "Action that fails by calling SettablePromise.fail"
|
61 | 91 | }, {
|
62 | 92 | "name" : "failPromiseThrow",
|
| 93 | + "javaMethodName" : "failPromiseThrow", |
| 94 | + "javaMethodType" : "PROMISE", |
| 95 | + "javaReturnsResultWrapper" : false, |
63 | 96 | "doc" : "Action that fails by throwing an exception, returning a promise"
|
64 | 97 | }, {
|
65 | 98 | "name" : "failTaskCall",
|
| 99 | + "javaMethodName" : "failTaskCall", |
| 100 | + "javaMethodType" : "TASK", |
| 101 | + "javaReturnsResultWrapper" : false, |
66 | 102 | "doc" : "Action that fails by calling SettablePromise.fail promise in a task"
|
67 | 103 | }, {
|
68 | 104 | "name" : "failTaskThrow",
|
| 105 | + "javaMethodName" : "failTaskThrow", |
| 106 | + "javaMethodType" : "TASK", |
| 107 | + "javaReturnsResultWrapper" : false, |
69 | 108 | "doc" : "Action that fails by throwing an exception, returning a task"
|
70 | 109 | }, {
|
71 | 110 | "name" : "failThrowInTask",
|
| 111 | + "javaMethodName" : "failThrowInTask", |
| 112 | + "javaMethodType" : "TASK", |
| 113 | + "javaReturnsResultWrapper" : false, |
72 | 114 | "doc" : "Action that fails by throwing an exception in the task"
|
73 | 115 | }, {
|
74 | 116 | "name" : "get",
|
| 117 | + "javaMethodName" : "get", |
| 118 | + "javaMethodType" : "SYNC", |
| 119 | + "javaReturnsResultWrapper" : false, |
75 | 120 | "returns" : "string"
|
76 | 121 | }, {
|
77 | 122 | "name" : "nullPromise",
|
| 123 | + "javaMethodName" : "nullPromise", |
| 124 | + "javaMethodType" : "PROMISE", |
| 125 | + "javaReturnsResultWrapper" : false, |
78 | 126 | "returns" : "string"
|
79 | 127 | }, {
|
80 | 128 | "name" : "nullTask",
|
| 129 | + "javaMethodName" : "nullTask", |
| 130 | + "javaMethodType" : "TASK", |
| 131 | + "javaReturnsResultWrapper" : false, |
81 | 132 | "returns" : "string"
|
82 | 133 | }, {
|
83 | 134 | "name" : "parseq",
|
| 135 | + "javaMethodName" : "parseqAction", |
| 136 | + "javaMethodType" : "PROMISE", |
| 137 | + "javaReturnsResultWrapper" : false, |
84 | 138 | "doc" : "Performs three \"slow\" tasks and collects the results. This uses the passed context\n parameter to execute tasks. The position of the context argument is arbitrary.\nService Returns: Concatenation of binary representation of a, all caps of b, and string value\nof c",
|
85 | 139 | "parameters" : [ {
|
86 | 140 | "name" : "a",
|
|
95 | 149 | "returns" : "string"
|
96 | 150 | }, {
|
97 | 151 | "name" : "parseq3",
|
| 152 | + "javaMethodName" : "parseqAction3", |
| 153 | + "javaMethodType" : "TASK", |
| 154 | + "javaReturnsResultWrapper" : false, |
98 | 155 | "doc" : "Performs three \"slow\" tasks and collects the results. This returns a task and lets\n the RestLi server invoke it.\nService Returns: Concatenation of binary representation of a, all caps of b, and string value\nof c",
|
99 | 156 | "parameters" : [ {
|
100 | 157 | "name" : "a",
|
|
109 | 166 | "returns" : "string"
|
110 | 167 | }, {
|
111 | 168 | "name" : "returnBool",
|
| 169 | + "javaMethodName" : "returnBool", |
| 170 | + "javaMethodType" : "SYNC", |
| 171 | + "javaReturnsResultWrapper" : false, |
112 | 172 | "returns" : "boolean"
|
113 | 173 | }, {
|
114 | 174 | "name" : "returnBoolOptionalParam",
|
| 175 | + "javaMethodName" : "returnBoolOptionalParam", |
| 176 | + "javaMethodType" : "SYNC", |
| 177 | + "javaReturnsResultWrapper" : false, |
115 | 178 | "parameters" : [ {
|
116 | 179 | "name" : "param",
|
117 | 180 | "type" : "boolean",
|
|
120 | 183 | "returns" : "boolean"
|
121 | 184 | }, {
|
122 | 185 | "name" : "returnInt",
|
| 186 | + "javaMethodName" : "returnPrimitive", |
| 187 | + "javaMethodType" : "SYNC", |
| 188 | + "javaReturnsResultWrapper" : false, |
123 | 189 | "returns" : "int"
|
124 | 190 | }, {
|
125 | 191 | "name" : "returnIntOptionalParam",
|
| 192 | + "javaMethodName" : "returnIntOptionalParam", |
| 193 | + "javaMethodType" : "SYNC", |
| 194 | + "javaReturnsResultWrapper" : false, |
126 | 195 | "parameters" : [ {
|
127 | 196 | "name" : "param",
|
128 | 197 | "type" : "int",
|
129 | 198 | "optional" : true
|
130 | 199 | } ],
|
131 | 200 | "returns" : "int"
|
132 | 201 | }, {
|
133 |
| - "name" : "returnVoid" |
| 202 | + "name" : "returnVoid", |
| 203 | + "javaMethodName" : "returnVoid", |
| 204 | + "javaMethodType" : "SYNC", |
| 205 | + "javaReturnsResultWrapper" : true |
134 | 206 | }, {
|
135 | 207 | "name" : "taskCreationDelay",
|
| 208 | + "javaMethodName" : "taskCreationDelay", |
| 209 | + "javaMethodType" : "TASK", |
| 210 | + "javaReturnsResultWrapper" : false, |
136 | 211 | "doc" : "Simulates a delay in an asynchronous resource caused by ParSeq execution plan creation. The delay is simulated as\n {@link Thread#sleep(long)} because execution plan creation is a synchronous operation.\nService Returns: Nothing",
|
137 | 212 | "parameters" : [ {
|
138 | 213 | "name" : "delay",
|
|
141 | 216 | } ]
|
142 | 217 | }, {
|
143 | 218 | "name" : "taskExecutionDelay",
|
| 219 | + "javaMethodName" : "taskExecutionDelay", |
| 220 | + "javaMethodType" : "TASK", |
| 221 | + "javaReturnsResultWrapper" : false, |
144 | 222 | "doc" : "Simulates a delay in an asynchronous resource. The delay is simulated using a scheduled task (asynchronously).\n That is how a typical async resource looks like in terms of delays.\nService Returns: Nothing",
|
145 | 223 | "parameters" : [ {
|
146 | 224 | "name" : "delay",
|
147 | 225 | "type" : "int",
|
148 | 226 | "doc" : "the number of milliseconds it will take this resource to create an execution plan"
|
149 | 227 | } ]
|
150 | 228 | }, {
|
151 |
| - "name" : "timeout" |
| 229 | + "name" : "timeout", |
| 230 | + "javaMethodName" : "timeout", |
| 231 | + "javaMethodType" : "PROMISE", |
| 232 | + "javaReturnsResultWrapper" : false |
152 | 233 | }, {
|
153 |
| - "name" : "timeoutCallback" |
| 234 | + "name" : "timeoutCallback", |
| 235 | + "javaMethodName" : "timeout", |
| 236 | + "javaMethodType" : "ASYNC", |
| 237 | + "javaReturnsResultWrapper" : false |
154 | 238 | }, {
|
155 | 239 | "name" : "ultimateAnswer",
|
| 240 | + "javaMethodName" : "testAction", |
| 241 | + "javaMethodType" : "SYNC", |
| 242 | + "javaReturnsResultWrapper" : false, |
156 | 243 | "returns" : "int"
|
157 | 244 | } ]
|
158 | 245 | }
|
|
0 commit comments