Annotation Interface MongoClusteredIndex
@Retention(RUNTIME)
@Target({TYPE,ANNOTATION_TYPE})
@Documented
@Inherited
public @interface MongoClusteredIndex
Declares MongoDB clustered collection options for an entity collection.
- Since:
- 5.0.0
- Author:
- radovanradic
-
Optional Element Summary
Optional Elements
-
Element Details
-
name
-
unique
boolean unique- Returns:
- Whether clustered index is unique. MongoDB requires
true.
- Default:
true
-
expireAfterSeconds
int expireAfterSeconds- Returns:
- The collection expiration in seconds for clustered TTL collections.
- Default:
-1
-