27 Kasım 2017 Pazartesi

InheritableThreadLocal Sınıfı

Giriş
Açıklaması şöyle
This class extends ThreadLocal to provide inheritance of values from parent thread to child thread: when a child thread is created, the child receives initial values for all inheritable thread-local variables for which the parent has values.
Örnek
Şöyle yaparız.
@Service
class A{

  private InheritableThreadLocal<Student> student;

}

Hiç yorum yok:

Yorum Gönder