Dali Provisional API
Release 3.2

org.eclipse.jpt.common.utility.command
Interface InterruptibleParameterizedCommand<T>

All Known Subinterfaces:
ParameterizedCommand<T>
All Known Implementing Classes:
InterruptibleParameterizedCommand.Interrupted, ParameterizedCommand.Disabled, ParameterizedCommand.Null

public interface InterruptibleParameterizedCommand<T>

Simple interface for implementing a command that takes a single argument and allows for the command to throw an InterruptedException.

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

See Also:
ParameterizedCommand

Nested Class Summary
static class InterruptibleParameterizedCommand.Interrupted<S>
          Singleton implementation of the interruptible parameterized command interface that will throw an interrupted exception when executed.
 
Method Summary
 void execute(T argument)
          Execute the command.
 

Method Detail

execute

void execute(T argument)
             throws InterruptedException
Execute the command. The semantics of the command is determined by the contract between the client and server.

Throws:
InterruptedException

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.