@Beta public abstract class ScheduledTaskHandler extends Object implements IdentifiedDataSerializable
IScheduledFuture
.
The handler is used to interact with the ScheduledFuture
in a IScheduledExecutorService
.
To access the handler, see IScheduledFuture.getHandler()
.
To re-acquire access to a previously scheduled task, having only the handler at hand,
see IScheduledExecutorService.getScheduledFuture(ScheduledTaskHandler)
Constructor and Description |
---|
ScheduledTaskHandler() |
Modifier and Type | Method and Description |
---|---|
abstract Address |
getAddress()
Return the address of the member the task is associated with.
|
abstract int |
getPartitionId()
Return the partition id the task is associated with.
|
abstract String |
getSchedulerName()
Return the name of the ScheduledExecutor this tasks is running on.
|
abstract String |
getTaskName()
Return the name of the task.
|
abstract boolean |
isAssignedToMember() |
abstract boolean |
isAssignedToPartition() |
static ScheduledTaskHandler |
of(String urn)
Reconstruct a
ScheduledTaskHandler from a URN String. |
abstract String |
toUrn()
Return the String represantion of the handler.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFactoryId, getId
readData, writeData
public abstract Address getAddress()
public abstract int getPartitionId()
public abstract String getSchedulerName()
public abstract String getTaskName()
public abstract boolean isAssignedToPartition()
public abstract boolean isAssignedToMember()
public abstract String toUrn()
ScheduledTaskHandler
can be constructed
again from the Urn String using of(String)
public static ScheduledTaskHandler of(String urn)
ScheduledTaskHandler
from a URN String.urn
- The URN of the handler as retrieved from toUrn()
.ScheduledTaskHandler
instance that can be used to access the scheduled task.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.