protected class PassiveTeam.PassiveJobContext extends Object implements JobContext
JobContext
.Constructor and Description |
---|
PassiveJobContext(TeamIdentifier teamIdentifier)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
continueExecution()
Indicates whether to continue execution.
|
TeamIdentifier |
getCurrentTeam()
|
long |
getTime()
Obtains the current time in milliseconds.
|
public PassiveJobContext(TeamIdentifier teamIdentifier)
teamIdentifier
- TeamIdentifier
.public long getTime()
JobContext
Obtains the current time in milliseconds.
This should return similar to System.currentTimeMillis()
but is
provided to cache time for multiple quick operations that require only
estimates of time - such as check if asynchronous operations by the
ManagedObject
instances have not timed out.
Note CPU operations should be in the nano-seconds.
getTime
in interface JobContext
public TeamIdentifier getCurrentTeam()
JobContext
getCurrentTeam
in interface JobContext
TeamIdentifier
of the current Team
executing the
Job
.public boolean continueExecution()
JobContext
Job
to be more responsive in shutting down.continueExecution
in interface JobContext
true
if should continue executing or
false
if execution has stopped and the Job
should stop.Copyright © 2005–2016. All rights reserved.