public class MongoIndexOptions extends Object
Constructor and Description |
---|
MongoIndexOptions() |
Modifier and Type | Method and Description |
---|---|
Integer |
expireAfterSeconds()
Get expire after seconds.
|
Boolean |
unique()
Get is unique or not.
|
MongoIndexOptions |
withExpireAfterSeconds(Integer expireAfterSeconds)
Set expire after seconds.
|
MongoIndexOptions |
withUnique(Boolean unique)
Set is unique or not.
|
public Integer expireAfterSeconds()
public MongoIndexOptions withExpireAfterSeconds(Integer expireAfterSeconds)
expireAfterSeconds
- the expireAfterSeconds value to setpublic Boolean unique()
public MongoIndexOptions withUnique(Boolean unique)
unique
- the unique value to setCopyright © 2019. All rights reserved.