Interface: ResourceRentalPoolEvents
resource-rental/resource-rental-pool.ResourceRentalPoolEvents
Table of contents
Properties
Properties
ready
• ready: () => void
Triggered when the pool has the minimal number of rentals prepared for operations
Type declaration
▸ (): void
Returns
void
Defined in
src/resource-rental/resource-rental-pool.ts:35
end
• end: () => void
Triggered when the pool is emptied from all rentals
Type declaration
▸ (): void
Returns
void
Defined in
src/resource-rental/resource-rental-pool.ts:38
acquired
• acquired: (event
: { agreement
: Agreement
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.agreement | Agreement |
Returns
void
Defined in
src/resource-rental/resource-rental-pool.ts:40
released
• released: (event
: { agreement
: Agreement
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.agreement | Agreement |
Returns
void
Defined in
src/resource-rental/resource-rental-pool.ts:41
created
• created: (event
: { agreement
: Agreement
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.agreement | Agreement |
Returns
void
Defined in
src/resource-rental/resource-rental-pool.ts:43
errorDestroyingRental
• errorDestroyingRental: (event
: { agreement
: Agreement
; error
: GolemMarketError
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.agreement | Agreement |
event.error | GolemMarketError |
Returns
void
Defined in
src/resource-rental/resource-rental-pool.ts:44
destroyed
• destroyed: (event
: { agreement
: Agreement
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.agreement | Agreement |
Returns
void
Defined in
src/resource-rental/resource-rental-pool.ts:46
errorCreatingRental
• errorCreatingRental: (event
: { error
: GolemMarketError
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.error | GolemMarketError |
Returns
void
Defined in
src/resource-rental/resource-rental-pool.ts:47
draining
• draining: () => void
Triggered when the pool enters the "draining" state
Type declaration
▸ (): void
Returns
void
Defined in
Was this helpful?