public final class ScheduledTaskHandlerImpl extends ScheduledTaskHandler
| Constructor and Description | 
|---|
| ScheduledTaskHandlerImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| Address | getAddress()Returns the address of the member the task is associated with. | 
| int | getFactoryId()Returns DataSerializableFactory factory ID for this class. | 
| int | getId()Returns type identifier for this class. | 
| int | getPartitionId()Returns the partition ID the task is associated with. | 
| String | getSchedulerName()Return the name of the ScheduledExecutor this tasks is running on. | 
| String | getTaskName()Returns the name of the task. | 
| int | hashCode() | 
| boolean | isAssignedToMember() | 
| boolean | isAssignedToPartition() | 
| static ScheduledTaskHandler | of(Address addr,
  String schedulerName,
  String taskName) | 
| static ScheduledTaskHandler | of(int partitionId,
  String schedulerName,
  String taskName) | 
| static ScheduledTaskHandler | of(String urn) | 
| void | readData(ObjectDataInput in)Reads fields from the input stream | 
| String | toString() | 
| String | toUrn()Returns the String representation of the handler. | 
| void | writeData(ObjectDataOutput out)Writes object fields to output stream | 
public Address getAddress()
ScheduledTaskHandler
 The address will be null, if the task was scheduled to particular partition.
getAddress in class ScheduledTaskHandlerpublic int getPartitionId()
ScheduledTaskHandlerIf the task was scheduled to a particular member, then the partition ID will have the value of -1.
getPartitionId in class ScheduledTaskHandlerpublic String getSchedulerName()
ScheduledTaskHandlergetSchedulerName in class ScheduledTaskHandlerpublic String getTaskName()
ScheduledTaskHandlergetTaskName in class ScheduledTaskHandlerpublic boolean isAssignedToPartition()
isAssignedToPartition in class ScheduledTaskHandlertrue when the associated task was scheduled on a specific partitionpublic boolean isAssignedToMember()
isAssignedToMember in class ScheduledTaskHandlertrue when the associated task was scheduled on a specific member in the clusterpublic String toUrn()
ScheduledTaskHandler
 Useful for persisting and/or communicating this info. A ScheduledTaskHandler can be constructed
 again from the Urn String using ScheduledTaskHandler.of(String)
toUrn in class ScheduledTaskHandlerpublic int getFactoryId()
IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablein - inputIOExceptionpublic static ScheduledTaskHandler of(Address addr, String schedulerName, String taskName)
public static ScheduledTaskHandler of(int partitionId, String schedulerName, String taskName)
public static ScheduledTaskHandler of(String urn)
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.