- All Superinterfaces:
BusyAccessor
,BusyAccessor.BusyMutator
- Enclosing interface:
- BusyAccessor
public static interface BusyAccessor.BusyProperty extends BusyAccessor, BusyAccessor.BusyMutator
Provides a busy property. Busy semantically means that a system doing
things which should not be aborted, for example there are open sessions
currently being used, open connections currently transferring data,
requests currently waiting for replies and similar.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.BusyAccessor
BusyAccessor.BusyMutator, BusyAccessor.BusyProperty
-
Method Summary
Modifier and Type Method Description default boolean
letBusy(boolean isBusy)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given boolean (setter) as ofBusyAccessor.BusyMutator.setBusy(boolean)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.BusyAccessor
isBusy
Methods inherited from interface org.refcodes.mixin.BusyAccessor.BusyMutator
setBusy
-
Method Details
-
letBusy
default boolean letBusy(boolean isBusy)This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given boolean (setter) as ofBusyAccessor.BusyMutator.setBusy(boolean)
and returns the very same value (getter).- Parameters:
isBusy
- The boolean to set (viaBusyAccessor.BusyMutator.setBusy(boolean)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-