クラス ScheduledMethodRunnable

java.lang.ObjectSE
org.springframework.scheduling.support.ScheduledMethodRunnable
実装されたすべてのインターフェース:
RunnableSE

public class ScheduledMethodRunnable extends ObjectSE implements RunnableSE
MethodInvokingRunnable のバリアントは、引数なしのスケジュールされたメソッドの処理に使用されることを意図しています。Runnables のエラー戦略が実施されていると想定して、ユーザー例外を呼び出し元に伝播します。
導入:
3.0.6
作成者:
Juergen Hoeller
関連事項:
  • コンストラクターの詳細

    • ScheduledMethodRunnable

      public ScheduledMethodRunnable(ObjectSE target, MethodSE method)
      指定されたターゲットインスタンスの ScheduledMethodRunnable を作成し、指定されたメソッドを呼び出します。
      パラメーター:
      target - メソッドを呼び出すターゲットインスタンス
      method - 呼び出すターゲットメソッド
    • ScheduledMethodRunnable

      public ScheduledMethodRunnable(ObjectSE target, StringSE methodName) throws NoSuchMethodExceptionSE
      指定されたターゲットインスタンスの ScheduledMethodRunnable を作成し、指定されたメソッドを名前で呼び出します。
      パラメーター:
      target - メソッドを呼び出すターゲットインスタンス
      methodName - ターゲットメソッドの名前
      例外:
      NoSuchMethodExceptionSE - 指定されたメソッドが存在しない場合
  • メソッドの詳細

    • getTarget

      public ObjectSE getTarget()
      メソッドを呼び出すターゲットインスタンスを返します。
    • getMethod

      public MethodSE getMethod()
      呼び出すターゲットメソッドを返します。
    • run

      public void run()
      次で指定:
      インターフェース RunnableSErun 
    • toString

      public StringSE toString()
      オーバーライド:
      クラス ObjectSEtoString