Skip to content

Commit

Permalink
Merge pull request #2021 from hyukjin-lee/chore/fix-classtypo
Browse files Browse the repository at this point in the history
fix typo 'HystrixContextSchedulerAction' class name
  • Loading branch information
pandeyabhi1987 committed May 20, 2023
2 parents 87f89c7 + cb78f94 commit abfb014
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import com.netflix.hystrix.strategy.HystrixPlugins;

/**
* Wrap a {@link Scheduler} so that scheduled actions are wrapped with {@link HystrixContexSchedulerAction} so that
* Wrap a {@link Scheduler} so that scheduled actions are wrapped with {@link HystrixContextSchedulerAction} so that
* the {@link HystrixRequestContext} is properly copied across threads (if they are used by the {@link Scheduler}).
*/
public class HystrixContextScheduler extends Scheduler {
Expand Down Expand Up @@ -93,7 +93,7 @@ public Subscription schedule(Action0 action, long delayTime, TimeUnit unit) {
throw new RejectedExecutionException("Rejected command because thread-pool queueSize is at rejection threshold.");
}
}
return worker.schedule(new HystrixContexSchedulerAction(concurrencyStrategy, action), delayTime, unit);
return worker.schedule(new HystrixContextSchedulerAction(concurrencyStrategy, action), delayTime, unit);
}

@Override
Expand All @@ -103,7 +103,7 @@ public Subscription schedule(Action0 action) {
throw new RejectedExecutionException("Rejected command because thread-pool queueSize is at rejection threshold.");
}
}
return worker.schedule(new HystrixContexSchedulerAction(concurrencyStrategy, action));
return worker.schedule(new HystrixContextSchedulerAction(concurrencyStrategy, action));
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@
*
* @ExcludeFromJavadoc
*/
public class HystrixContexSchedulerAction implements Action0 {
public class HystrixContextSchedulerAction implements Action0 {

private final Action0 actual;
private final HystrixRequestContext parentThreadState;
private final Callable<Void> c;

public HystrixContexSchedulerAction(Action0 action) {
public HystrixContextSchedulerAction(Action0 action) {
this(HystrixPlugins.getInstance().getConcurrencyStrategy(), action);
}

public HystrixContexSchedulerAction(final HystrixConcurrencyStrategy concurrencyStrategy, Action0 action) {
public HystrixContextSchedulerAction(final HystrixConcurrencyStrategy concurrencyStrategy, Action0 action) {
this.actual = action;
this.parentThreadState = HystrixRequestContext.getContextForCurrentThread();

Expand Down

0 comments on commit abfb014

Please sign in to comment.