public class InvokeMethodRunnable extends Object implements Runnable
MethodInvocation in a Runnable to allow it to be scheduled with
a ScheduledExecutorService. When the resulting runnable is executed, it will
invoke Joinpoint.proceed() and discard any return value. All exceptions
will be propagated by wrapping them in a RuntimeException.| Modifier and Type | Method and Description |
|---|---|
static Runnable |
of(InjectedMethodInvocation invocation)
Creates a Runnable which will proceed the given MethodInvocation when being
executed.
|
void |
run() |
public static Runnable of(InjectedMethodInvocation invocation)
invocation - the invocation to call.Copyright © 2014–2018. All rights reserved.