Package lv.id.jc.piglatin.actuator
Class TranslationCountEndpoint
java.lang.Object
lv.id.jc.piglatin.actuator.TranslationCountEndpoint
This class represents an endpoint for counting translations.
It provides methods for reading, setting, and resetting the translation count.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TranslationCountEndpoint
-
-
Method Details
-
count
Retrieves the current count of translations.- Returns:
- A Map containing the count of translations. The key "count" maps to the current count value.
-
set
Sets the translation counts to the specified value.- Parameters:
count
- The new count value.- Returns:
- A Map containing the updated count of translations. The key "count" maps to the new count value.
-
reset
@DeleteOperation public void reset()Resets the translation counts to zero.
-