@@ -300,6 +300,12 @@ def query(self, *, query: dict = None, caller: AuthToken = None,
300
300
Returns:
301
301
query response
302
302
"""
303
+ @abstractmethod
304
+ def execute_on_actor_thread (self , * , runnable : ABCActorRunnable ):
305
+ """
306
+ Execute on Actor Thread and Wait until response is processed
307
+ @params runnable: reservation to be processed
308
+ """
303
309
304
310
@abstractmethod
305
311
def execute_on_actor_thread_and_wait (self , * , runnable : ABCActorRunnable ):
@@ -545,6 +551,19 @@ def close_by_rid(self, *, rid: ID):
545
551
Exception in case of error
546
552
"""
547
553
554
+ @abstractmethod
555
+ def close_delegation (self , * , did : str ):
556
+ """
557
+ Closes the delegation. Note: the delegation must have already been registered with the actor.
558
+ This method may involve either a client or a server side action or both. When called on a broker,
559
+ this method will only close the broker delegation.
560
+
561
+ Args:
562
+ did: delegation id
563
+ Raises:
564
+ Exception in case of error
565
+ """
566
+
548
567
@abstractmethod
549
568
def close (self , * , reservation : ABCReservationMixin ):
550
569
"""
@@ -682,3 +701,19 @@ def unregister(self, *, reservation: ABCReservationMixin, rid: ID):
682
701
Raises:
683
702
Exception in case of error
684
703
"""
704
+
705
+ def get_asm_thread (self ):
706
+ return None
707
+
708
+ @abstractmethod
709
+ def remove_delegation (self , * , did : str ):
710
+ """
711
+ Removes the specified delegation. Note: the delegation must have already been registered with the actor.
712
+ This method will unregister the reservation and remove it from the underlying database.
713
+ Only closed and failed delegation can be removed.
714
+
715
+ Args:
716
+ did: delegation id
717
+ Raises:
718
+ Exception if an error occurs or when trying to remove a delegation that is neither failed or closed.
719
+ """
0 commit comments