ClearTokensOnShutdown returns if persisted tokens should be cleared on shutdown.
()
| 1065 | |
| 1066 | // ClearTokensOnShutdown returns if persisted tokens should be cleared on shutdown. |
| 1067 | func (i *Lifecycler) ClearTokensOnShutdown() bool { |
| 1068 | return i.clearTokensOnShutdown.Load() |
| 1069 | } |
| 1070 | |
| 1071 | // SetClearTokensOnShutdown enables/disables deletions of tokens on shutdown. |
| 1072 | // Set to `true` in case one wants to clear tokens on shutdown which are |