/** * Checking all {@link Rule}s about the protected method. * * @param method the protected method * @param count tokens required * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(Method method, int count) { return entry(method, EntryType.OUT, count, OBJECTS0); }
/** * Checking all {@link Rule}s about the protected method. * * @param method the protected method * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(Method method) { return entry(method, EntryType.OUT, 1, OBJECTS0); }
/** * Checking all {@link Rule}s about the resource. * * @param name the unique name of the protected resource * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(String name) { return entry(name, EntryType.OUT, 1, OBJECTS0); }
/** * Checking all {@link Rule}s about the resource. * * @param name the unique string for the resource * @param count tokens required * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(String name, int count) { return entry(name, EntryType.OUT, count, OBJECTS0); }
/** * Checking all {@link Rule}s about the protected method. * * @param method the protected method * @param type the resource is an inbound or an outbound method. This is used * to mark whether it can be blocked when the system is unstable, * only inbound traffic could be blocked by {@link SystemRule} * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(Method method, EntryType type) { return entry(method, type, 1, OBJECTS0); }
/** * Checking all {@link Rule}s about the resource. * * @param name the unique name for the protected resource * @param type the resource is an inbound or an outbound method. This is used * to mark whether it can be blocked when the system is unstable, * only inbound traffic could be blocked by {@link SystemRule} * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(String name, EntryType type) { return entry(name, type, 1, OBJECTS0); }
/** * Checking all {@link Rule}s about the protected method. * * @param method the protected method * @param type the resource is an inbound or an outbound method. This is used * to mark whether it can be blocked when the system is unstable, * only inbound traffic could be blocked by {@link SystemRule} * @param count tokens required * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(Method method, EntryType type, int count) { return entry(method, type, count, OBJECTS0); }
/** * Checking all {@link Rule}s about the resource. * * @param name the unique name for the protected resource * @param type the resource is an inbound or an outbound method. This is used * to mark whether it can be blocked when the system is unstable, * only inbound traffic could be blocked by {@link SystemRule} * @param count tokens required * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(String name, EntryType type, int count) { return entry(name, type, count, OBJECTS0); }
/** * Checking all {@link Rule}s about the resource. * * @param name the unique name for the protected resource * @param type the resource is an inbound or an outbound method. This is used * to mark whether it can be blocked when the system is unstable, * only inbound traffic could be blocked by {@link SystemRule} * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(String name, EntryType type) { return entry(name, type, 1, OBJECTS0); }
/** * Checking all {@link Rule}s about the resource. * * @param name the unique name for the protected resource * @param type the resource is an inbound or an outbound method. This is used * to mark whether it can be blocked when the system is unstable, * only inbound traffic could be blocked by {@link SystemRule} * @param count tokens required * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(String name, EntryType type, int count) { return entry(name, type, count, OBJECTS0); }
/** * Checking all {@link Rule}s about the resource. * * @param name the unique name of the protected resource * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(String name) { return entry(name, EntryType.OUT, 1, OBJECTS0); }
/** * Checking all {@link Rule}s about the protected method. * * @param method the protected method * @param count tokens required * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(Method method, int count) { return entry(method, EntryType.OUT, count, OBJECTS0); }
/** * Checking all {@link Rule}s about the resource. * * @param name the unique string for the resource * @param count tokens required * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(String name, int count) { return entry(name, EntryType.OUT, count, OBJECTS0); }
/** * Checking all {@link Rule}s about the protected method. * * @param method the protected method * @param type the resource is an inbound or an outbound method. This is used * to mark whether it can be blocked when the system is unstable, * only inbound traffic could be blocked by {@link SystemRule} * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(Method method, EntryType type) { return entry(method, type, 1, OBJECTS0); }
/** * Checking all {@link Rule}s about the protected method. * * @param method the protected method * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(Method method) { return entry(method, EntryType.OUT, 1, OBJECTS0); }
/** * Checking all {@link Rule}s about the protected method. * * @param method the protected method * @param type the resource is an inbound or an outbound method. This is used * to mark whether it can be blocked when the system is unstable, * only inbound traffic could be blocked by {@link SystemRule} * @param count tokens required * @return true if no rule's threshold is exceeded, otherwise return false. */ public static boolean entry(Method method, EntryType type, int count) { return entry(method, type, count, OBJECTS0); }