viewtify.util
GuardedOperation
NoOP
GuardedOperation
The reusable no-operation.
GuardedOperation
()
guard
(kiss.WiseRunnable
process
)
void
kiss.WiseRunnable
process
)kiss.WiseRunnable process |
An atomic process. |
Guaranteed to be executed only once at a time. The difference with the synchronized block is that it does not allow recursive execution by the same thread and if the process is rejected, this operator will skip it instead of waiting.
protect
(Runnable
process
)
void
Runnable
process
)Runnable process |
An atomic process. |
#guard(WiseRunnable)
for Runnable
.
Guaranteed to be executed only once at a time. The difference with the synchronized block is that it does not allow recursive execution by the same thread and if the process is rejected, this operator will skip it instead of waiting.
ignoreError
()
GuardedOperation
GuardedOperation |
Ignore error while processing.