Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.commands
Interface CancellationService

All Known Implementing Classes:
CancellationServiceImpl

public interface CancellationService

CancellationService manages association of Thread executing CancellableCommand in a remote VM and if needed cancels command execution

Since:
5.2
Author:
Vladimir Blagojevic

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
 

Method Detail

register

void register(Thread t,
              UUID id)
Registers thread with CancellationService under the given UUID id

Parameters:
t - thread to associate with id
id - chosen UUID id

unregister

void unregister(UUID id)
Unregisters thread with CancellationService given an id

Parameters:
id - thread id

cancel

void cancel(UUID id)
Cancels (invokes Thread#interrupt) a thread given a thread id

Parameters:
id - thread id

Infinispan Distribution 5.2.6.Final-redhat-2

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