Modifier and Type | Field and Description |
---|---|
protected boolean |
counter |
protected long |
expire |
protected long |
expireAccess |
protected long |
expireMaxSize |
protected long |
expireStoreSize |
protected Hasher<?> |
hasher |
protected String |
name |
protected Serializer<?> |
serializer |
Constructor and Description |
---|
HTreeSetMaker(String name) |
Modifier and Type | Method and Description |
---|---|
DB.HTreeSetMaker |
counterEnable()
by default collection does not have counter, without counter updates are faster, but entire collection needs to be traversed to count items.
|
DB.HTreeSetMaker |
expireAfterAccess(long interval)
Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access.
|
DB.HTreeSetMaker |
expireAfterAccess(long interval,
TimeUnit timeUnit)
Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access.
|
DB.HTreeSetMaker |
expireAfterWrite(long interval)
Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.
|
DB.HTreeSetMaker |
expireAfterWrite(long interval,
TimeUnit timeUnit)
Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.
|
DB.HTreeSetMaker |
expireMaxSize(long maxSize)
maximal number of entries in this map.
|
DB.HTreeSetMaker |
expireStoreSize(double maxStoreSize)
maximal size of store in GB, if store is larger entries will start expiring
|
DB.HTreeSetMaker |
hasher(Hasher<?> hasher) |
<K> Set<K> |
make() |
<K> Set<K> |
makeOrGet() |
DB.HTreeSetMaker |
serializer(Serializer<?> serializer)
keySerializer used to convert keys into/from binary form.
|
protected final String name
protected boolean counter
protected Serializer<?> serializer
protected long expireMaxSize
protected long expireStoreSize
protected long expire
protected long expireAccess
protected Hasher<?> hasher
public HTreeSetMaker(String name)
public DB.HTreeSetMaker counterEnable()
public DB.HTreeSetMaker serializer(Serializer<?> serializer)
public DB.HTreeSetMaker expireMaxSize(long maxSize)
public DB.HTreeSetMaker expireStoreSize(double maxStoreSize)
public DB.HTreeSetMaker expireAfterWrite(long interval, TimeUnit timeUnit)
public DB.HTreeSetMaker expireAfterWrite(long interval)
public DB.HTreeSetMaker expireAfterAccess(long interval, TimeUnit timeUnit)
public DB.HTreeSetMaker expireAfterAccess(long interval)
public DB.HTreeSetMaker hasher(Hasher<?> hasher)
public <K> Set<K> make()
public <K> Set<K> makeOrGet()
Copyright © 2017. All rights reserved.