|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
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.coherence.commonj.WorkManager.RemoteWorkManager
protected class WorkManager.RemoteWorkManager
RemoteWorkManager is a delegating WorkManager wrapper.
Field Summary | |
---|---|
protected Member |
m_memberPinned
The service Member this RemoteWorkManager is pinned to. |
Fields inherited from interface commonj.work.WorkManager |
---|
IMMEDIATE, INDEFINITE |
Constructor Summary | |
---|---|
WorkManager.RemoteWorkManager(Member memberPinned)
|
Method Summary | |
---|---|
commonj.work.WorkItem |
schedule(commonj.work.Work work)
Dispatches a Work asynchronously. |
commonj.work.WorkItem |
schedule(commonj.work.Work work,
commonj.work.WorkListener workListener)
Dispatches a Work asynchronously. |
protected commonj.work.WorkItem |
schedule(commonj.work.Work work,
commonj.work.WorkListener workListener,
Member member)
Accepts a Work instance for processing at the specified Member. |
boolean |
waitForAll(Collection collWorkItems,
long lTimeoutMillis)
|
Collection |
waitForAny(Collection collWorkItems,
long lTimeoutMillis)
|
Field Detail |
---|
protected Member m_memberPinned
Constructor Detail |
---|
public WorkManager.RemoteWorkManager(Member memberPinned)
Method Detail |
---|
public commonj.work.WorkItem schedule(commonj.work.Work work) throws commonj.work.WorkException, IllegalArgumentException
WorkRejectedException
will be thrown even if the remote JVM
restarts. The pinned WorkManager must be refreshed by using a normal
WorkManager and then acquiring a new pinned WorkManager.
schedule
in interface commonj.work.WorkManager
work
- the Work to execute
commonj.work.WorkException
- thrown if queuing this up results in an exception
IllegalArgumentException
public commonj.work.WorkItem schedule(commonj.work.Work work, commonj.work.WorkListener workListener) throws commonj.work.WorkException, IllegalArgumentException
WorkRejectedException
will be thrown even if the remote JVM
restarts. The pinned WorkManager must be refreshed by using a normal
WorkManager and then acquiring a new pinned WorkManager.
schedule
in interface commonj.work.WorkManager
work
- the Work to execute
commonj.work.WorkException
- thrown if queuing this up results in an exception
IllegalArgumentException
protected commonj.work.WorkItem schedule(commonj.work.Work work, commonj.work.WorkListener workListener, Member member) throws commonj.work.WorkException
commonj.work.WorkException
public boolean waitForAll(Collection collWorkItems, long lTimeoutMillis) throws InterruptedException, IllegalArgumentException
waitForAll
in interface commonj.work.WorkManager
InterruptedException
IllegalArgumentException
WorkManager.waitForAll(java.util.Collection, long)
public Collection waitForAny(Collection collWorkItems, long lTimeoutMillis) throws InterruptedException, IllegalArgumentException
waitForAny
in interface commonj.work.WorkManager
InterruptedException
IllegalArgumentException
WorkManager.waitForAny(java.util.Collection, long)
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |