google-nomulus/java/google/registry/flows/async
mcilwain 1790914058 Add Runnable overrides to ease use of Java 8 language features
Runnable and Callable are both @FunctionalInterfaces. The difference is
that Callable requires a return value whereas Runnable does not, so in
situations where we don't care about a return value, rather than having to
add an unnecessary 'return null;' at the end of the lambda, we can simply
use a non-returning Runnable instead.

Unfortunately, owing to legacy reasons, Runnable is not declared to throw
checked exceptions whereas Callable is, so in situations where checked
exceptions are thrown we still need to have a 'return null;' call at the
end.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=172935400
2017-10-24 16:53:47 -04:00
..
AsyncFlowEnqueuer.java Add Runnable overrides to ease use of Java 8 language features 2017-10-24 16:53:47 -04:00
AsyncFlowMetrics.java Add basic logging for async operation processing time 2017-07-10 11:31:56 -04:00
AsyncFlowsModule.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00