Package akka.japi.function
Interface Procedure<T>
-
- All Superinterfaces:
java.io.Serializable
public interface Procedure<T> extends java.io.Serializable
A Procedure is like a Function, but it doesn't produce a return value.Serializable
is needed to be able to grab line number for Java 8 lambdas. Supports throwingException
in the apply, which thejava.util.function.Consumer
counterpart does not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
apply(T param)
-
-
-
Method Detail
-
apply
void apply(T param) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-