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

io.vlingo.actors.plugin.eviction.DirectoryEvictionPlugin Maven / Gradle / Ivy

Go to download

Type safe Actor Model toolkit for reactive concurrency and resiliency using Java and other JVM languages.

There is a newer version: 1.7.5
Show newest version
package io.vlingo.actors.plugin.eviction;

import io.vlingo.actors.DirectoryEvictionConfiguration;
import io.vlingo.actors.Registrar;
import io.vlingo.actors.plugin.AbstractPlugin;
import io.vlingo.actors.plugin.Plugin;
import io.vlingo.actors.plugin.PluginConfiguration;

public class DirectoryEvictionPlugin extends AbstractPlugin {

  private final DirectoryEvictionConfiguration configuration;

  public DirectoryEvictionPlugin() {
    this(DirectoryEvictionConfiguration.define());
  }

  private DirectoryEvictionPlugin(DirectoryEvictionConfiguration configuration) {
    this.configuration = configuration;
  }


  @Override
  public void close() { }

  @Override
  public PluginConfiguration configuration() {
    return configuration;
  }

  @Override
  public String name() {
    return configuration.name();
  }

  @Override
  public int pass() {
    return 2;
  }

  @Override
  public void start(Registrar registrar) { }

  @Override
  public Plugin with(PluginConfiguration overrideConfiguration) {
    if (overrideConfiguration == null) {
      return this;
    }
    return new DirectoryEvictionPlugin(
        (DirectoryEvictionConfiguration)overrideConfiguration);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy