public final class IdentityFunction extends Object implements VortexFunction<Integer,Integer>
Constructor and Description |
---|
IdentityFunction() |
public IdentityFunction()
public Integer call(Integer input) throws Exception
call
in interface VortexFunction<Integer,Integer>
input
- of the functionException
- thrown here will bubble up in VortexFuture#get as ExecutionException
Exception should be thrown only after all resources are released as they cannot be cleared by Vortex
For example if threads are spawned here, shut them down before throwing an exceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.