@Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface NosqlTable
If annotation is not explicitly used the TableLimits
are determined
by NosqlDbConfig.getDefaultCapacityMode()
,
NosqlDbConfig.getDefaultStorageGB()
,
NosqlDbConfig.getDefaultReadUnits()
, and
NosqlDbConfig.getDefaultWriteUnits()
.
Modifier and Type | Optional Element and Description |
---|---|
boolean |
autoCreateTable
Flag that indicates if automatic creation of table is enabled.
|
NosqlCapacityMode |
capacityMode
Sets the capacity mode when table is created.
|
String |
consistency
Sets the default consistency for all read operations applied to this
table.
|
String |
durability
Sets the default durability for all write operations
applied to this table.
|
int |
readUnits
Sets the read units when table is created.
|
int |
storageGB
Sets the storageGB when table is created.
|
String |
tableName
Sets the name of the table to be used for this entity.
|
int |
timeout
Sets the default timeout in milliseconds for all operations applied on
this table.
|
int |
writeUnits
Sets the write units when table is created.
|
public abstract String tableName
Class.getSimpleName()
is used.public abstract boolean autoCreateTable
Constants.DEFAULT_AUTO_CREATE_TABLE
.public abstract NosqlCapacityMode capacityMode
For TableLimits
to be set one of the following two
conditions must be met:
If not set the default value is NosqlCapacityMode.PROVISIONED
.
public abstract int readUnits
NosqlCapacityMode.PROVISIONED
.
If not set the value NosqlDbConfig.getDefaultReadUnits()
is used.
All three: readUnits, writeUnits and storageGB must be greater than 0 to
set a valid TableLimits
.public abstract int writeUnits
NosqlCapacityMode.PROVISIONED
.
If not set the value NosqlDbConfig.getDefaultWriteUnits()
is
used. All three: readUnits, writeUnits and storageGB must be greater than
0 to set a valid TableLimits
.public abstract int storageGB
If not set, the value of NosqlDbConfig.getDefaultStorageGB()
is
used.
A 0 or less than -1 value will force no table limits, but they are required in cloud and cloudsim instalations.
For TableLimits
to be set one of the following two
conditions must be met:
public abstract String consistency
Consistency
.
If not set the default value for this is EVENTUAL.public abstract String durability
Durability
. If not set the default value for this is
COMMIT_NO_SYNC.Note: This applies to On-Prem installations only.
public abstract int timeout
NosqlRepository.setTimeout(int)
take precedence over
the set here.Copyright © 2022 Oracle Corporation. All rights reserved.