Skip to content

Commit

Permalink
mark TimerAccess as deprecated for removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladicek committed Mar 22, 2024
1 parent 2ec9546 commit dde4c52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static synchronized void configure(Configuration configuration) {
*
* @return read-only view into the SmallRye Fault Tolerance timer
*/
@Deprecated(forRemoval = true)
public static synchronized TimerAccess timerAccess() {
// we should expose timer metrics out of the box, but this will have to do for now
return new TimerAccessImpl(getLazyDependencies().timer());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
* <p>
* Implementations must be thread-safe.
*/
@Deprecated(forRemoval = true)
public interface TimerAccess {
/**
* Returns the number of tasks that are currently scheduled for execution by the timer.
* Finished tasks and tasks that are already running are not included.
*
* @return the number of currently scheduled tasks
*/
@Deprecated(forRemoval = true)
int countScheduledTasks();
}

0 comments on commit dde4c52

Please sign in to comment.