private void setDefaultCapacity ( ) { Object capacity = getParam ( "ddb_default_read_capacity" ) ; if ( capacity != null ) { READ_CAPACITY_UNITS = Integer . parseInt ( capacity . toString ( ) ) ; } capacity = getParam ( "ddb_default_write_capacity" ) ; if ( capacity != null ) { WRITE_CAPACITY_UNITS = Integer . parseInt ( capacity . toString ( ) ) ; } m_logger . info ( "Default table capacity: read={}, write={}" , READ_CAPACITY_UNITS , WRITE_CAPACITY_UNITS ) ; }
Set READ_CAPACITY_UNITS and WRITE_CAPACITY_UNITS if overridden .