com.hazelcast.spi

## Interface ManagedService

- All Known Implementing Classes:
    AtomicLongService, AtomicReferenceService, CountDownLatchService, CRDTReplicationMigrationService, IdGeneratorService, LockServiceImpl, PNCounterService, SemaphoreService

      public interface ManagedService

  An interface that can be implemented by an SPI Service to receive lifecycle calls:
  1. initialization
  2. shutdown
  3. reset

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `init(NodeEngine nodeEngine, Properties properties)` Initializes this service.
    `void` | `reset()` Resets this service back to its initial state.
    `void` | `shutdown(boolean terminate)` Shuts down this service.

- - ### Method Detail

    - #### init

          void init(NodeEngine nodeEngine,
                    Properties properties)

      Initializes this service.
      Parameters:
        `nodeEngine` - the NodeEngine that this service belongs to
        `properties` - the Properties (can be used to pass settings to the service)

    - #### reset

          void reset()

      Resets this service back to its initial state.

      TODO: what is the purpose of reset

    - #### shutdown

          void shutdown(boolean terminate)

      Shuts down this service.

      TODO: what is the purpose of the terminate variable

      Parameters:
        `terminate` - `true` to shut down this service

Copyright © 2018. All rights reserved.