All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kz.greetgo.logging.zookeeper.config.EventConfigFile Maven / Gradle / Ivy

There is a newer version: 0.2.0
Show newest version
package kz.greetgo.logging.zookeeper.config;

import java.util.Date;
import java.util.Optional;

public interface EventConfigFile extends AutoCloseable {

  EventRegistration addEventHandler(EventFileHandler eventFileHandler);

  default boolean exists() {
    return createdAt().isPresent();
  }

  void ensureLookingFor();

  Optional createdAt();

  Optional lastModifiedAt();

  byte[] readContent();

  void writeContent(byte[] content);

  default void delete() {
    writeContent(null);
  }

  @Override
  void close();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy