PlumeKeyProvider

object PlumeKeyProvider: Any

Fields

Name Description
var keyPoolSize: Int

The size of IDs to acquire per thread. Once this is finished, the thread will acquire another pool of IDs of this size. This value can never be set to < 0 and if the value overflows it will default to 1000.

Methods

getNewId

fun getNewId(d: IOverridenIdDriver): Long

Returns a new ID for the current thread to assign a vertex to.

Parameters

Name Description
d: IOverridenIdDriver

The driver to check for available IDs with.

ReturnValue

Name Description
Long

a new ID.

clearKeyPools

fun clearKeyPools()

In the case key pools need to be regenerated they can be cleared here.

ReturnValue

Name Description
Unit