Class WeatherPersistence

java.lang.Object
ecmwf.ecpds.master.weather.WeatherPersistence
All Implemented Interfaces:
AutoCloseable

public final class WeatherPersistence extends Object implements AutoCloseable
Single background writer. Admission is memory-only, bounded and nonblocking.
  • Constructor Details

    • WeatherPersistence

      public WeatherPersistence(WeatherPersistence.Store store)
    • WeatherPersistence

      public WeatherPersistence()
  • Method Details

    • offer

      public boolean offer(WeatherObservation observation)
    • ready

      public boolean ready()
    • step

      public void step()
      Call only from the owning scheduler. At most ten events/100 connections per second; two retries per event.
    • status

      public WeatherPersistence.Status status()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable