public interface CancellationService
Modifier and Type | Method and Description |
---|---|
void |
cancel(UUID id)
Cancels (invokes Thread#interrupt) a thread given a thread id
|
void |
register(Thread t,
UUID id)
Registers thread with
CancellationService under the given UUID id |
void |
unregister(UUID id)
Unregisters thread with
CancellationService given an id |
void register(Thread t, UUID id)
CancellationService
under the given UUID idt
- thread to associate with idid
- chosen UUID idvoid unregister(UUID id)
CancellationService
given an idid
- thread idvoid cancel(UUID id)
id
- thread idCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.