Package com.zfabrik.workers.worker
Class HomeHandle
java.lang.Object
com.zfabrik.workers.worker.HomeHandle
The Home Handle provides ways of interaction with the currently running home layout (see
IHomeLayout)
from a worker process perspective.
This interface allows to send messages to other worker processes, trigger a synchronization and more.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidbroadcastInvalidations(Collection<String> invs, int scope) post resource invalidations by fully qualified resource names.abstract IWorkerLeaseThe worker lease is a way to control a worker's life time beyond a detach situation.static HomeHandleinstance()abstract Map<String,Serializable> sendMessage(Map<String, Serializable> args, long timeout) send a message.protected static voidabstract voidtriggerSynchronization(int scope) abstract void
-
Field Details
-
instance
-
-
Constructor Details
-
HomeHandle
public HomeHandle()
-
-
Method Details
-
setInstance
-
instance
-
sendMessage
public abstract Map<String,Serializable> sendMessage(Map<String, Serializable> args, long timeout) throws IOExceptionsend a message. See alsoIWorkerProcess- Parameters:
args-timeout-- Returns:
- Throws:
IOException
-
triggerSynchronization
- Throws:
IOException
-
triggerVerification
- Throws:
IOException
-
getLastSynchronizationLog
- Throws:
IOException
-
broadcastInvalidations
post resource invalidations by fully qualified resource names. These may be processed asynchronously. If local invalidation is mandatory, local invalidations should be forced additionally- Parameters:
invs-
-
getWorkerLease
The worker lease is a way to control a worker's life time beyond a detach situation. This can be used to implement session based worker life time extension for example.
-