Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.commands
Class CancellationServiceImpl

java.lang.Object
  extended by org.infinispan.commands.CancellationServiceImpl
All Implemented Interfaces:
CancellationService

public class CancellationServiceImpl
extends Object
implements CancellationService

CancellationServiceImpl is a default implementation of CancellationService

Since:
5.2
Author:
Vladimir Blagojevic

Constructor Summary
CancellationServiceImpl()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancellationServiceImpl

public CancellationServiceImpl()
Method Detail

register

public void register(Thread t,
                     UUID id)
Description copied from interface: CancellationService
Registers thread with CancellationService under the given UUID id

Specified by:
register in interface CancellationService
Parameters:
t - thread to associate with id
id - chosen UUID id

unregister

public void unregister(UUID id)
Description copied from interface: CancellationService
Unregisters thread with CancellationService given an id

Specified by:
unregister in interface CancellationService
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 interface CancellationService
Parameters:
id - thread id

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.