public final class StalenessCheckMessage extends Message<StalenessCheckMessage.Response,AccessException>
StalenessCheckMessage
represents a request to a store to check
whether a given set of objects is still fresh.Modifier and Type | Class and Description |
---|---|
static class |
StalenessCheckMessage.Response |
Message.MessageType, Message.NoException
Modifier and Type | Field and Description |
---|---|
LongKeyMap<java.lang.Integer> |
versions |
exceptionClass, messageType
Modifier | Constructor and Description |
---|---|
protected |
StalenessCheckMessage(java.io.DataInput in) |
|
StalenessCheckMessage(LongKeyMap<java.lang.Integer> versions) |
Modifier and Type | Method and Description |
---|---|
StalenessCheckMessage.Response |
dispatch(RemoteIdentity<RemoteWorker> client,
MessageHandler h)
Visitor method.
|
protected StalenessCheckMessage.Response |
readResponse(java.io.DataInput in)
Creates a Response message of the appropriate type using the provided
DataOutput |
protected void |
writeMessage(java.io.DataOutput out)
Writes this message out on the given output stream.
|
protected void |
writeResponse(java.io.DataOutput out,
StalenessCheckMessage.Response r)
Writes a Response message of the appropriate type using the provided
DataOutput . |
readObject, readRef, receive, respond, respond, send, writeObject, writeRef
public final LongKeyMap<java.lang.Integer> versions
public StalenessCheckMessage(LongKeyMap<java.lang.Integer> versions)
protected StalenessCheckMessage(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public StalenessCheckMessage.Response dispatch(RemoteIdentity<RemoteWorker> client, MessageHandler h) throws ProtocolError, AccessException
Message
dispatch
in class Message<StalenessCheckMessage.Response,AccessException>
client
- the node that is issuing the request.h
- the handler to which this message is to be dispatched.ProtocolError
AccessException
protected void writeMessage(java.io.DataOutput out) throws java.io.IOException
Message
writeMessage
in class Message<StalenessCheckMessage.Response,AccessException>
java.io.IOException
- if the DataOutput
fails.protected void writeResponse(java.io.DataOutput out, StalenessCheckMessage.Response r) throws java.io.IOException
Message
DataOutput
.writeResponse
in class Message<StalenessCheckMessage.Response,AccessException>
java.io.IOException
- if the DataOutput
fails.protected StalenessCheckMessage.Response readResponse(java.io.DataInput in) throws java.io.IOException
Message
DataOutput
readResponse
in class Message<StalenessCheckMessage.Response,AccessException>
java.io.IOException
- if the response is malformed, or if the DataInput
fails.