Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GridCompute.apply()単一のargまたはを渡すことができますCollection<> argsが、内部にアクセスする方法がわかりませんGridClosureか?
GridCompute.apply()
arg
Collection<> args
GridClosure
GridGain は引数と同じ数のクロージャを作成し、個々の引数をGridClosure.apply(arg)メソッドに渡します。
GridClosure.apply(arg)
したがって、10 個の引数の Collection<> を渡すと、GridGain は引数ごとに 1 つずつ、10 個のクロージャーを作成し、グリッド全体で均等に負荷分散します。