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

io.bitsensor.plugins.java.blocking.BlockingManager Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
package io.bitsensor.plugins.java.blocking;

import io.bitsensor.lib.entity.BlockedAttacker;

import java.util.Map;

/**
 * Blocking manager that keeps track of a blacklist containing blocked attackers.
 */
public interface BlockingManager {

    /**
     * Returns a map of blocked attackers stored in memory.
     *
     * @return blocked attacker map.
     */
    Map getBlacklist();

    /**
     * Returns a blocked attacker stored in the blacklist map.
     *
     * @param id identifier of the blocked attacker which was generated when added the blocked attacker to
     *           Elasticsearch.
     * @return the blocked attacker.
     */
    BlockedAttacker getBlocking(String id);

    /**
     * Fetches blacklist.
     */
    void fetchBlacklist();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy