Package org.infinispan.commands
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancel(UUID id)
Cancels (invokes Thread#interrupt) a thread given a thread idvoid
register(Thread t, UUID id)
Registers thread withCancellationService
under the given UUID idvoid
unregister(UUID id)
Unregisters thread withCancellationService
given an id
-
-
-
Method Detail
-
register
void register(Thread t, UUID id)
Registers thread withCancellationService
under the given UUID id- Parameters:
t
- thread to associate with idid
- chosen UUID id
-
unregister
void unregister(UUID id)
Unregisters thread withCancellationService
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
-
-