Interface CancellationService

  • All Known Implementing Classes:
    CancellationServiceImpl

    public interface CancellationService
    CancellationService manages association of Thread executing CancellableCommand in a remote VM and if needed cancels command execution
    Since:
    5.2
    Author:
    Vladimir Blagojevic
    • Method Detail

      • register

        void register​(Thread t,
                      UUID id)
        Registers thread with CancellationService under the given UUID id
        Parameters:
        t - thread to associate with id
        id - chosen UUID id
      • unregister

        void unregister​(UUID id)
        Unregisters thread with CancellationService given an id
        Parameters:
        id - thread id
      • cancel

        void cancel​(UUID id)
        Cancels (invokes Thread#interrupt) a thread given a thread id
        Parameters:
        id - thread id