Dali Provisional API
Release 3.2

org.eclipse.jpt.common.utility.command
Class InterruptibleParameterizedCommand.Interrupted<S>

java.lang.Object
  extended by org.eclipse.jpt.common.utility.command.InterruptibleParameterizedCommand.Interrupted<S>
All Implemented Interfaces:
Serializable, InterruptibleParameterizedCommand<S>
Enclosing interface:
InterruptibleParameterizedCommand<T>

public static final class InterruptibleParameterizedCommand.Interrupted<S>
extends Object
implements InterruptibleParameterizedCommand<S>, Serializable

Singleton implementation of the interruptible parameterized command interface that will throw an interrupted exception when executed.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.utility.command.InterruptibleParameterizedCommand
InterruptibleParameterizedCommand.Interrupted<S>
 
Field Summary
static InterruptibleParameterizedCommand INSTANCE
           
 
Method Summary
 void execute(S argument)
          Execute the command.
static
<R> InterruptibleParameterizedCommand<R>
instance()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final InterruptibleParameterizedCommand INSTANCE
Method Detail

instance

public static <R> InterruptibleParameterizedCommand<R> instance()

execute

public void execute(S argument)
             throws InterruptedException
Description copied from interface: InterruptibleParameterizedCommand
Execute the command. The semantics of the command is determined by the contract between the client and server.

Specified by:
execute in interface InterruptibleParameterizedCommand<S>
Throws:
InterruptedException

toString

public String toString()
Overrides:
toString in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.