net.i2p.util

## Class TempDirScanner

- java.lang.Object
- - net.i2p.util.SimpleTimer2.TimedEvent
  - - net.i2p.util.TempDirScanner

- All Implemented Interfaces:
    Runnable

      public class TempDirScanner
      extends SimpleTimer2.TimedEvent

  Prevent systemd from deleting our temp dir or any dirs or files in it. Scheduled by I2PAppContext when the temp dir is created. To configure/test systemd: Edit file /usr/lib/tmpfiles.d/tmp.conf, change line D /tmp 1777 root root - to D /tmp 1777 root root 24h Ref: https://lwn.net/Articles/975565/ Ref: https://systemd.io/TEMPORARY_DIRECTORIES/ Ref: man systemd-tmpfiles; man tmpfiles.d

- - ### Field Summary

    - ### Fields inherited from class net.i2p.util.SimpleTimer2.TimedEvent

      `_state, DEFAULT_FUZZ`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TempDirScanner(I2PAppContext context)` Schedules itself

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `timeReached()` Simple interface for events to be queued up and notified on expiration the time requested has been reached (this call should NOT block, otherwise the whole SimpleTimer gets backed up)

    - ### Methods inherited from class net.i2p.util.SimpleTimer2.TimedEvent

      `cancel, forceReschedule, reschedule, reschedule, run, schedule, setFuzz, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### TempDirScanner

          public TempDirScanner(I2PAppContext context)

      Schedules itself

  - ### Method Detail

    - #### timeReached

          public void timeReached()

      Description copied from class: `SimpleTimer2.TimedEvent`
      Simple interface for events to be queued up and notified on expiration the time requested has been reached (this call should NOT block, otherwise the whole SimpleTimer gets backed up)
      Specified by:
        `timeReached` in class `SimpleTimer2.TimedEvent`