Interface SynchronizerApi.RunGet
-
- All Superinterfaces:
SynchronizerApi.Fluent
- All Known Subinterfaces:
SynchronizerApi.RunGetInvoke
,SynchronizerApi.SleepRunGet
- All Known Implementing Classes:
Synchronizer
- Enclosing interface:
- SynchronizerApi
public static interface SynchronizerApi.RunGet extends SynchronizerApi.Fluent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> SynchronizerApi.Get.WakeSleepInvoke<T>
get(Supplier<T> getter)
Sets the givenSupplier
as the main action of the chain.SynchronizerApi.Run.WakeSleepInvoke
run(Runnable runnable)
Sets the givenRunnable
as the main action of the chain.
-
-
-
Method Detail
-
run
SynchronizerApi.Run.WakeSleepInvoke run(Runnable runnable)
Sets the givenRunnable
as the main action of the chain.- Parameters:
runnable
- the action to perform- Throws:
NullPointerException
- ifrunnable
is null
-
get
<T> SynchronizerApi.Get.WakeSleepInvoke<T> get(Supplier<T> getter)
Sets the givenSupplier
as the main action of the chain.- Parameters:
getter
- the action to perform- Throws:
NullPointerException
- ifgetter
is null
-
-