fabric.messages
Class StalenessCheckMessage
java.lang.Object
fabric.messages.Message<RemoteNode,StalenessCheckMessage.Response>
fabric.messages.StalenessCheckMessage
public class StalenessCheckMessage
- extends Message<RemoteNode,StalenessCheckMessage.Response>
A StalenessCheckMessage
represents a request to a store to check
whether a given set of objects is still fresh.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versions
public final LongKeyMap<java.lang.Integer> versions
StalenessCheckMessage
public StalenessCheckMessage(LongKeyMap<java.lang.Integer> versions)
StalenessCheckMessage
protected StalenessCheckMessage(java.io.DataInput in)
throws java.io.IOException
- Deserialization constructor. Used only by the store.
- Throws:
java.io.IOException
dispatch
public StalenessCheckMessage.Response dispatch(MessageHandlerThread handler)
throws AccessException
- Description copied from class:
Message
- Calls the appropriate
handle(...)
method on the handler.
- Overrides:
dispatch
in class Message<RemoteNode,StalenessCheckMessage.Response>
- Returns:
- the result computed by the handler
- Throws:
AccessException
response
public StalenessCheckMessage.Response response(RemoteNode node,
java.io.DataInput in)
throws java.io.IOException
- Description copied from class:
Message
- Creates a Response message of the appropriate type using the provided input
stream.
- Specified by:
response
in class Message<RemoteNode,StalenessCheckMessage.Response>
- Parameters:
node
- the remote node from which the response originated.in
- Input stream containing the message.
- Returns:
- A Response message with the appropriate type.
- Throws:
java.io.IOException
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Description copied from class:
Message
- Writes this message out on the given output stream. Only used by the
worker.
- Specified by:
write
in class Message<RemoteNode,StalenessCheckMessage.Response>
- Throws:
java.io.IOException
- if the output stream throws an IOException.
send
public StalenessCheckMessage.Response send(RemoteNode node)