|
25 | 25 | * |
26 | 26 | * <p> |
27 | 27 | * The following example shows a Java function that is invoked when there are inserts or updates in |
28 | | - * the specified database and collection. |
| 28 | + * the specified database and container. |
29 | 29 | * </p> |
30 | 30 | * |
31 | 31 | * <pre> |
32 | 32 | * {@literal @}FunctionName("cosmosDBMonitor") |
33 | 33 | * public void cosmosDbLog( |
34 | 34 | * {@literal @}CosmosDBTrigger(name = "database", |
35 | 35 | * databaseName = "ToDoList", |
36 | | - * collectionName = "Items", |
37 | | - * leaseCollectionName = "leases", |
38 | | - * createLeaseCollectionIfNotExists = true, |
39 | | - * connectionStringSetting = "AzureCosmosDBConnection") |
| 36 | + * containerName = "Items", |
| 37 | + * leaseContainerName = "leases", |
| 38 | + * createLeaseContainerIfNotExists = true, |
| 39 | + * connection = "AzureCosmosDBConnection") |
40 | 40 | * List<Map<String, String>> items, |
41 | 41 | * final ExecutionContext context |
42 | 42 | * ) { |
|
83 | 83 | String databaseName(); |
84 | 84 |
|
85 | 85 | /** |
86 | | - * Defines the collection name of the CosmosDB to which to bind. |
| 86 | + * Defines the container name of the CosmosDB to which to bind. |
87 | 87 | * |
88 | | - * @return The collection name string. |
| 88 | + * @return The container name string. |
89 | 89 | */ |
90 | | - String collectionName(); |
| 90 | + String containerName(); |
91 | 91 |
|
92 | 92 | /** |
93 | | - * Defines Connection string for the service containing the lease collection. |
| 93 | + * Defines Connection string for the service containing the lease container. |
94 | 94 | * |
95 | | - * @return Connection string for the lease collection. |
| 95 | + * @return Connection string for the lease container. |
96 | 96 | */ |
97 | 97 | String leaseConnectionStringSetting() default ""; |
98 | 98 |
|
99 | 99 | /** |
100 | | - * Defines the lease collection name of the CosmosDB to which to bind. |
| 100 | + * Defines the lease container name of the CosmosDB to which to bind. |
101 | 101 | * |
102 | | - * @return The lease collection name string. |
| 102 | + * @return The lease container name string. |
103 | 103 | */ |
104 | | - String leaseCollectionName() default ""; |
| 104 | + String leaseContainerName() default ""; |
105 | 105 |
|
106 | 106 | /** |
107 | | - * Defines Name of the database containing the lease collection. |
| 107 | + * Defines Name of the database containing the lease container. |
108 | 108 | * |
109 | | - * @return Name of the database for lease collection. |
| 109 | + * @return Name of the database for lease container. |
110 | 110 | */ |
111 | 111 | String leaseDatabaseName() default ""; |
112 | 112 |
|
113 | 113 | /** |
114 | | - * Defines whether to create a new lease collection if not exists. |
| 114 | + * Defines whether to create a new lease container if not exists. |
115 | 115 | * |
116 | | - * @return configuration whether to create a new lease collection if not exists. |
| 116 | + * @return configuration whether to create a new lease container if not exists. |
117 | 117 | */ |
118 | | - boolean createLeaseCollectionIfNotExists() default false; |
| 118 | + boolean createLeaseContainerIfNotExists() default false; |
119 | 119 |
|
120 | 120 | /** |
121 | | - * defines the throughput of the created collection.. |
| 121 | + * defines the throughput of the created container. |
122 | 122 | * |
123 | 123 | * @return throughput |
124 | 124 | */ |
125 | | - int leasesCollectionThroughput() default -1; |
| 125 | + int leasesContainerThroughput() default -1; |
126 | 126 |
|
127 | 127 | /** |
128 | | - * Defines a prefix to be used within a Leases collection for this Trigger. Useful when sharing |
129 | | - * the same Lease collection among multiple Triggers. |
| 128 | + * Defines a prefix to be used within a Leases container for this Trigger. Useful when sharing |
| 129 | + * the same Lease container among multiple Triggers. |
130 | 130 | * |
131 | | - * @return LeaseCollectionPrefix |
| 131 | + * @return LeaseContainerPrefix |
132 | 132 | */ |
133 | | - String leaseCollectionPrefix() default ""; |
| 133 | + String leaseContainerPrefix() default ""; |
134 | 134 |
|
135 | 135 | /** |
136 | 136 | * Customizes the amount of milliseconds between lease checkpoints. Default is always after a |
|
161 | 161 | * |
162 | 162 | * @return The app setting name of the connection string. |
163 | 163 | */ |
164 | | - String connectionStringSetting(); |
| 164 | + String connection(); |
165 | 165 |
|
166 | 166 | /** |
167 | 167 | * Customizes the renew interval in milliseconds for all leases for partitions currently held by |
|
0 commit comments