Package com._1c.g5.v8.dt.common
Class ExpressionSafeRunnable<T>
- java.lang.Object
-
- com._1c.g5.v8.dt.common.ExpressionSafeRunnable<T>
-
- All Implemented Interfaces:
org.eclipse.core.runtime.ISafeRunnable
public class ExpressionSafeRunnable<T> extends Object implements org.eclipse.core.runtime.ISafeRunnable
The safe runnable based on lambda expressions.
-
-
Constructor Summary
Constructors Constructor Description ExpressionSafeRunnable(Consumer<T> runExpression)
Creates a new safe runnable.ExpressionSafeRunnable(Consumer<T> runExpression, Consumer<Throwable> logExpression)
Creates a new safe runnable wich exception processed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleException(Throwable exception)
void
run()
void
setObject(T object)
Set object for run expressions.
-
-
-
Constructor Detail
-
ExpressionSafeRunnable
public ExpressionSafeRunnable(Consumer<T> runExpression, Consumer<Throwable> logExpression)
Creates a new safe runnable wich exception processed.- Parameters:
runExpression
- the expressions for run menthod.logExpression
- the expressions for exception precessed.
-
-