Package io.csar

Class DecoratedConcernedThreadGroup

java.lang.Object
java.lang.ThreadGroup
io.csar.DecoratedConcernedThreadGroup
All Implemented Interfaces:
Concerned, Thread.UncaughtExceptionHandler
Direct Known Subclasses:
ConcernRegistryThreadGroup

public class DecoratedConcernedThreadGroup extends ThreadGroup implements Concerned
A thread group that allows the retrieval of a concern on a per-thread-group basis by decorating an existing concerned object.
Author:
Garret Wilson
See Also:
  • Constructor Details

  • Method Details

    • getConcerned

      protected Concerned getConcerned()
      Returns:
      The implementation for managing concerns for this thread group.
    • findConcern

      public <T extends Concern> Optional<T> findConcern(Class<T> concernClass)
      Description copied from interface: Concerned
      Returns the concern for the given concern type.
      Specified by:
      findConcern in interface Concerned
      Type Parameters:
      T - The type of concern to retrieve.
      Parameters:
      concernClass - The class of concern to retrieve.
      Returns:
      The concern associated with the given class.