Class ZooReaderWriterFactory

    • Constructor Detail

      • ZooReaderWriterFactory

        public ZooReaderWriterFactory()
    • Method Detail

      • getZooReaderWriter

        public IZooReaderWriter getZooReaderWriter​(String string,
                                                   int timeInMillis,
                                                   String secret)
        Gets a new reader/writer.
        Parameters:
        string - ZooKeeper connection string
        timeInMillis - session timeout in milliseconds
        secret - instance secret
        Returns:
        reader/writer
      • getInstance

        public IZooReaderWriter getInstance()
        Gets a reader/writer, retrieving ZooKeeper information from the site configuration. The same instance may be returned for multiple calls.
        Returns:
        reader/writer