Class ScheduledTaskHandler

    • Constructor Detail

      • ScheduledTaskHandler

        public ScheduledTaskHandler()
    • Method Detail

      • getUuid

        public abstract java.util.UUID getUuid()
        Returns the uuid of the member the task is associated with.

        The uuid will be null, if the task was scheduled to particular partition.

        Returns:
        The uuid of the member
      • getPartitionId

        public abstract int getPartitionId()
        Returns the partition ID the task is associated with.

        If the task was scheduled to a particular member, then the partition ID will have the value of -1.

        Returns:
        The partition ID
      • getSchedulerName

        public abstract java.lang.String getSchedulerName()
        Return the name of the ScheduledExecutor this tasks is running on.
        Returns:
        the name of the scheduler
      • getTaskName

        public abstract java.lang.String getTaskName()
        Returns the name of the task.
        Returns:
        the task name
      • isAssignedToPartition

        public abstract boolean isAssignedToPartition()
        Returns:
        true when the associated task was scheduled on a specific partition
      • isAssignedToMember

        public abstract boolean isAssignedToMember()
        Returns:
        true when the associated task was scheduled on a specific member in the cluster
      • toUrn

        public abstract java.lang.String toUrn()
        Returns the String representation of the handler.

        Useful for persisting and/or communicating this info. A ScheduledTaskHandler can be constructed again from the Urn String using of(String)

        Returns:
        URN representing the handler in a String format