Package org.infinispan.commands
Class CancellationServiceImpl
- java.lang.Object
-
- org.infinispan.commands.CancellationServiceImpl
-
- All Implemented Interfaces:
CancellationService
public class CancellationServiceImpl extends Object implements CancellationService
CancellationServiceImpl is a default implementation ofCancellationService
- Since:
- 5.2
- Author:
- Vladimir Blagojevic
-
-
Constructor Summary
Constructors Constructor Description CancellationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
public void register(Thread t, UUID id)
Description copied from interface:CancellationService
Registers thread withCancellationService
under the given UUID id- Specified by:
register
in interfaceCancellationService
- Parameters:
t
- thread to associate with idid
- chosen UUID id
-
unregister
public void unregister(UUID id)
Description copied from interface:CancellationService
Unregisters thread withCancellationService
given an id- Specified by:
unregister
in interfaceCancellationService
- Parameters:
id
- thread id
-
cancel
public void cancel(UUID id)
Description copied from interface:CancellationService
Cancels (invokes Thread#interrupt) a thread given a thread id- Specified by:
cancel
in interfaceCancellationService
- Parameters:
id
- thread id
-
-