|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.AbstractInvocable
com.tangosol.coherence.commonj.WorkManager.AbstractWork
protected abstract static class WorkManager.AbstractWork
Base class for Invocable tasks related to the WorkManager. Note, that aside of the ScheduleWork task all other tasks have to be scheduled immediately.
| Field Summary | |
|---|---|
protected long |
m_lWorkIdThe work id. |
protected int |
m_nMemberIdThe Work originator Member id. |
| Fields inherited from interface com.tangosol.net.PriorityTask |
|---|
SCHEDULE_FIRST, SCHEDULE_IMMEDIATE, SCHEDULE_STANDARD, TIMEOUT_DEFAULT, TIMEOUT_NONE |
| Constructor Summary | |
|---|---|
WorkManager.AbstractWork()Default constructor (necessary for a lite serialization). |
|
WorkManager.AbstractWork(long lWorkId, int nMemberId)Construct the AbstractWork to be executed on behalf of the specified member (a Work originator). |
|
| Method Summary | |
|---|---|
Member |
getMember()Return a Work originator's Member object. |
int |
getMemberId()Return a Work originator's Member id. |
int |
getSchedulingPriority()Obtain this task's scheduling priority. |
long |
getWorkId()Return a Work id. |
void |
readExternal(java.io.DataInput in)Restore the contents of this object by loading the object's state from the passed DataInput object. |
void |
readExternal(PofReader in)Restore the contents of a user type instance by reading its state using the specified PofReader object. |
void |
writeExternal(java.io.DataOutput out)Save the contents of this object by storing the object's state into the passed DataOutput object. |
void |
writeExternal(PofWriter out)Save the contents of a POF user type instance by writing its state using the specified PofWriter object. |
| Methods inherited from class com.tangosol.net.AbstractInvocable |
|---|
getExecutionTimeoutMillis, getRequestTimeoutMillis, getResult, getService, init, isRespondInOrder, runCanceled, setResult |
| Methods inherited from interface com.tangosol.net.Invocable |
|---|
run |
| Field Detail |
|---|
protected long m_lWorkId
protected int m_nMemberId
| Constructor Detail |
|---|
public WorkManager.AbstractWork()
public WorkManager.AbstractWork(long lWorkId,
int nMemberId)
lWorkId - the Work idnMemberId - the tagret Member id| Method Detail |
|---|
public int getSchedulingPriority()
This implementation returns SCHEDULE_STANDARD.
getSchedulingPriority in interface PriorityTaskgetSchedulingPriority in class AbstractInvocablepublic long getWorkId()
public int getMemberId()
public Member getMember()
public void readExternal(java.io.DataInput in)
throws java.io.IOException
readExternal in interface ExternalizableLitein - the DataInput stream to read data from in order to restore the state of this objectjava.io.IOException - if an I/O exception occursjava.io.NotActiveException - if the object is not in its initial state, and therefore cannot be deserialized into
public void writeExternal(java.io.DataOutput out)
throws java.io.IOException
writeExternal in interface ExternalizableLiteout - the DataOutput stream to write the state of this object tojava.io.IOException - if an I/O exception occurs
public void readExternal(PofReader in)
throws java.io.IOException
readExternal in interface PortableObjectin - the PofReader from which to read the object's statejava.io.IOException - if an I/O error occurs
public void writeExternal(PofWriter out)
throws java.io.IOException
writeExternal in interface PortableObjectout - the PofWriter to which to write the object's statejava.io.IOException - if an I/O error occurs
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||