org.eclipse.jpt.common.utility.command
Class InterruptibleParameterizedCommand.Interrupted<S>
java.lang.Object
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
INSTANCE
public static final InterruptibleParameterizedCommand INSTANCE
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
Copyright (c) 2012 Oracle. All rights reserved.