Uses of Interface
com.kingsrook.qqq.backend.core.utils.lambdas.UnsafeSupplier
Packages that use UnsafeSupplier
Package
Description
-
Uses of UnsafeSupplier in com.kingsrook.qqq.backend.core.actions.async
Methods in com.kingsrook.qqq.backend.core.actions.async with parameters of type UnsafeSupplierModifier and TypeMethodDescriptionintAsyncRecordPipeLoop.run(String jobName, Integer recordLimit, RecordPipe recordPipe, UnsafeFunction<AsyncJobCallback, ? extends Serializable, QException> supplier, UnsafeSupplier<Integer, QException> consumer) Run an async-record-pipe-loop. -
Uses of UnsafeSupplier in com.kingsrook.qqq.backend.core.actions.permissions
Methods in com.kingsrook.qqq.backend.core.actions.permissions with parameters of type UnsafeSupplierModifier and TypeMethodDescriptionstatic <T,E extends Exception>
TCorePermissionEnforcer.runTrusted(String reason, UnsafeSupplier<T, E> supplier) Run framework- or application-internal code as trusted: core actions called by the supplier (with PermissionEnforcement.DEFAULT) are not subject to the instance-level permission enforcement. -
Uses of UnsafeSupplier in com.kingsrook.qqq.backend.core.logging
Methods in com.kingsrook.qqq.backend.core.logging with parameters of type UnsafeSupplier -
Uses of UnsafeSupplier in com.kingsrook.qqq.backend.core.utils
Methods in com.kingsrook.qqq.backend.core.utils with parameters of type UnsafeSupplierModifier and TypeMethodDescriptionstatic booleanObjectUtils.ifCan(UnsafeSupplier<Boolean, ? extends Throwable> supplier) Utility to test a chained unsafe expression CAN get to the end and return true.static <T> TObjectUtils.tryAndRequireNonNullElse(UnsafeSupplier<T, ?> supplier, T defaultIfThrew) Like Objects.requireNonNullElse, only use an (unsafe) supplier as the first arg, and if it throws or returns null, then return the 2nd argstatic <T> TObjectUtils.tryElse(UnsafeSupplier<T, ?> supplier, T defaultIfThrew) Like Objects.requireNonNullElse, only use an (unsafe) supplier as the first arg, and only if it throws, return the 2nd arg