@ PublicEvolving public void setResources ( ResourceSpec minResources , ResourceSpec preferredResources ) { this . minResources = minResources ; this . preferredResources = preferredResources ; }
Sets the minimum and preferred resources for this contract instance . The resource denotes how many memories and cpu cores of the user function will be consumed during the execution .