FlushOnShutdown returns if flushing is enabled if transfer fails on a shutdown.
()
| 1044 | |
| 1045 | // FlushOnShutdown returns if flushing is enabled if transfer fails on a shutdown. |
| 1046 | func (i *Lifecycler) FlushOnShutdown() bool { |
| 1047 | return i.flushOnShutdown.Load() |
| 1048 | } |
| 1049 | |
| 1050 | // SetFlushOnShutdown enables/disables flush on shutdown if transfer fails. |
| 1051 | // Passing 'true' enables it, and 'false' disabled it. |