public class ClusterRequest extends java.lang.Object implements Request
Constructor and Description |
---|
ClusterRequest() |
ClusterRequest(ClusterMetaData clusterMetaData) |
Modifier and Type | Method and Description |
---|---|
long |
getClusterMetaDataVersion() |
RequestType |
getRequestType() |
void |
readExternal(java.io.ObjectInput in)
Changes to this method must observe the optional
metaData version |
void |
setMetaData(ProtocolMetaData metaData)
Set the protocol metadata that can be used for versioned requests
|
void |
writeExternal(java.io.ObjectOutput out)
Changes to this method must observe the optional
metaData version |
public ClusterRequest()
public ClusterRequest(ClusterMetaData clusterMetaData)
public void setMetaData(ProtocolMetaData metaData)
Request
setMetaData
in interface Request
metaData
- ProtocolMetaDatapublic RequestType getRequestType()
getRequestType
in interface Request
public long getClusterMetaDataVersion()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
metaData
versionreadExternal
in interface java.io.Externalizable
readExternal
in interface Request
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
metaData
versionwriteExternal
in interface java.io.Externalizable
writeExternal
in interface Request
java.io.IOException