Interface CommonDeviceRegistry<KEY>

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
DeviceFlowRegistry, DeviceGroupRegistry, DeviceMeterRegistry
All Known Implementing Classes:
DeviceFlowRegistryImpl, DeviceGroupRegistryImpl, DeviceMeterRegistryImpl

public interface CommonDeviceRegistry<KEY> extends AutoCloseable
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addMark(KEY key)
    Add mark for specified KEY.
    void
     
    void
    forEach(Consumer<KEY> consumer)
    Iterate over all keys in device registry.
    void
    Process marked keys.
    int
    Get device registry size.
    void
    store(KEY key)
    Store KEY in device registry.
  • Method Details

    • store

      void store(KEY key)
      Store KEY in device registry.
      Parameters:
      key - device registry key
    • addMark

      void addMark(KEY key)
      Add mark for specified KEY.
      Parameters:
      key - device registry key
    • processMarks

      void processMarks()
      Process marked keys.
    • forEach

      void forEach(Consumer<KEY> consumer)
      Iterate over all keys in device registry.
      Parameters:
      consumer - key consumer
    • size

      int size()
      Get device registry size.
      Returns:
      device registry size
    • close

      void close()
      Specified by:
      close in interface AutoCloseable