Class TaskReactorInstance


  • public class TaskReactorInstance
    extends Object
    Task Reactor instance representation.
    • Constructor Detail

      • TaskReactorInstance

        public TaskReactorInstance​(Identifier instanceName,
                                   boolean isInitialized,
                                   boolean isActive)
        Creates a new TaskReactorInstance.
        Parameters:
        instanceName - Task Reactor instance name
        isInitialized - is instance initialized
        isActive - is instance active
    • Method Detail

      • instanceName

        public Identifier instanceName()
        Returns the instance name.
        Returns:
        instance name
      • isInitialized

        public boolean isInitialized()
        Returns whether the instance is initialized.
        Returns:
        whether the instance is initialized
      • isActive

        public boolean isActive()
        Returns whether the instance is active.
        Returns:
        whether the instance is active
      • withActive

        public TaskReactorInstance withActive​(boolean isActive)
        Returns a copy of this instance, with the active parameter set to the specified value.
        Parameters:
        isActive - whether the instance is active
        Returns:
        a copy of this instance
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object