public interface IdSource
Id sources are unique instances per Db. For example, by default there is one ObjectId instance per Db. However, implementations _may_ be able to be shared among Dbs, so it's up to the implementation whether it tolerates different Dbs or not.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLockFree()
Returns whether retrieving an id is a lock-free operation.
|
long |
nextId(Db db)
Get the next unique ID.
|
long nextId(Db db)
db - the current db connection to be checked against getDb()boolean isLockFree()
Copyright © 2016 Krake Softwaretechnik. All rights reserved.