public class CancellationServiceImpl extends Object implements CancellationService
CancellationService
Constructor and Description |
---|
CancellationServiceImpl() |
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 |
public void register(Thread t, UUID id)
CancellationService
CancellationService
under the given UUID idregister
in interface CancellationService
t
- thread to associate with idid
- chosen UUID idpublic void unregister(UUID id)
CancellationService
CancellationService
given an idunregister
in interface CancellationService
id
- thread idpublic void cancel(UUID id)
CancellationService
cancel
in interface CancellationService
id
- thread idCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.