Class FlushTask
java.lang.Object
org.jivesoftware.openfire.pubsub.cluster.FlushTask
- All Implemented Interfaces:
Externalizable,Serializable,Runnable,ClusterTask<Void>
A cluster task used to instruct other cluster nodes that they must flush pending changes to pubsub nodes to the
persistent data storage.
This task can be used to flush all pending changes, or the pending changes related to a specific node only.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a flush task for a system-wide flush of pending changes.FlushTask(Node.UniqueIdentifier uniqueIdentifier) Instantiates a flush task for a specific node. -
Method Summary
-
Constructor Details
-
FlushTask
Instantiates a flush task for a specific node.- Parameters:
uniqueIdentifier- The identifier of the node to flush.
-
FlushTask
public FlushTask()Instantiates a flush task for a system-wide flush of pending changes.
-
-
Method Details
-
run
public void run() -
getResult
- Specified by:
getResultin interfaceClusterTask<Void>
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-