Package bftsmart.tom.core.messages
Class ForwardedMessage
- java.lang.Object
-
- bftsmart.communication.SystemMessage
-
- bftsmart.tom.core.messages.ForwardedMessage
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
public final class ForwardedMessage extends SystemMessage
Message used to forward a client request to the current leader when the first timeout for this request is triggered (see RequestTimer).- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class bftsmart.communication.SystemMessage
authenticated, sender
-
-
Constructor Summary
Constructors Constructor Description ForwardedMessage()
ForwardedMessage(int senderId, TOMMessage request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TOMMessage
getRequest()
void
readExternal(java.io.ObjectInput in)
void
writeExternal(java.io.ObjectOutput out)
-
Methods inherited from class bftsmart.communication.SystemMessage
getSender
-
-
-
-
Constructor Detail
-
ForwardedMessage
public ForwardedMessage()
-
ForwardedMessage
public ForwardedMessage(int senderId, TOMMessage request)
-
-
Method Detail
-
getRequest
public TOMMessage getRequest()
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Overrides:
writeExternal
in classSystemMessage
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Overrides:
readExternal
in classSystemMessage
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
-