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)
CancellationServiceCancellationService under the given UUID idregister in interface CancellationServicet - thread to associate with idid - chosen UUID idpublic void unregister(UUID id)
CancellationServiceCancellationService given an idunregister in interface CancellationServiceid - thread idpublic void cancel(UUID id)
CancellationServicecancel in interface CancellationServiceid - thread idCopyright © 2024 JBoss, a division of Red Hat. All rights reserved.