Class FlushTask
- java.lang.Object
-
- org.jivesoftware.openfire.pubsub.cluster.FlushTask
-
- All Implemented Interfaces:
Externalizable,Serializable,Runnable,ClusterTask<Void>
public class FlushTask extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FlushTask()Instantiates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoidgetResult()voidreadExternal(ObjectInput in)voidrun()voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
FlushTask
public FlushTask(@Nonnull Node.UniqueIdentifier uniqueIdentifier)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 Detail
-
getResult
public Void getResult()
- Specified by:
getResultin interfaceClusterTask<Void>
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-