Event Handlers for Bucket VTA
The bucket VTA includes the following event handlers.
![]()
GetBucket Event Handler
The GetBucket event handler retrieves the balance of the bucket account when the subscriber logs in.
![]()
RefillBucketWithBehavingRate Event Handler
The RefillBucketWithBehavingRate event handler refills the bucket with the behaving rate and starts the behaving service if the bucket account has a positive balance.
![]()
UpdateBehavingUsage Event Handler
The UpdateBehavingUsage event handler updates the bucket account with the usage from the behaving service.
![]()
ToMisbehaving Event Handler
The ToMisbehaving event handler changes the subscriber to misbehaving mode when the bucket has zero or negative balance.
![]()