Package io.pravega.shared.protocol.netty
Class WireCommands.Hello
- java.lang.Object
-
- io.pravega.shared.protocol.netty.WireCommands.Hello
-
- All Implemented Interfaces:
Reply,Request,WireCommand
- Enclosing class:
- WireCommands
public static final class WireCommands.Hello extends java.lang.Object implements Request, Reply, WireCommand
-
-
Constructor Summary
Constructors Constructor Description Hello(int highVersion, int lowVersion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetHighVersion()intgetLowVersion()longgetRequestId()WireCommandTypegetType()inthashCode()voidprocess(ReplyProcessor cp)voidprocess(RequestProcessor cp)static WireCommands.HelloreadFrom(java.io.DataInput in, int length)java.lang.StringtoString()voidwriteFields(java.io.DataOutput out)
-
-
-
Method Detail
-
process
public void process(RequestProcessor cp)
-
process
public void process(ReplyProcessor cp)
-
writeFields
public void writeFields(java.io.DataOutput out) throws java.io.IOException- Specified by:
writeFieldsin interfaceWireCommand- Throws:
java.io.IOException
-
readFrom
public static WireCommands.Hello readFrom(java.io.DataInput in, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
getRequestId
public long getRequestId()
- Specified by:
getRequestIdin interfaceReply- Specified by:
getRequestIdin interfaceRequest
-
getType
public WireCommandType getType()
- Specified by:
getTypein interfaceWireCommand
-
getHighVersion
public int getHighVersion()
-
getLowVersion
public int getLowVersion()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-