Package io.pravega.shared.protocol.netty
Class WireCommands.ConditionalAppend
- java.lang.Object
-
- io.pravega.shared.protocol.netty.WireCommands.ReleasableCommand
-
- io.pravega.shared.protocol.netty.WireCommands.ConditionalAppend
-
- All Implemented Interfaces:
Request,WireCommand
- Enclosing class:
- WireCommands
public static final class WireCommands.ConditionalAppend extends WireCommands.ReleasableCommand implements Request
-
-
Constructor Summary
Constructors Constructor Description ConditionalAppend(java.util.UUID writerId, long eventNumber, long expectedOffset, WireCommands.Event event, long requestId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)WireCommands.EventgetEvent()longgetEventNumber()longgetExpectedOffset()longgetRequestId()WireCommandTypegetType()java.util.UUIDgetWriterId()inthashCode()voidprocess(RequestProcessor cp)static WireCommandreadFrom(EnhancedByteBufInputStream in, int length)java.lang.StringtoString()voidwriteFields(java.io.DataOutput out)-
Methods inherited from class io.pravega.shared.protocol.netty.WireCommands.ReleasableCommand
isReleased, release
-
-
-
-
Constructor Detail
-
ConditionalAppend
@ConstructorProperties({"writerId","eventNumber","expectedOffset","event","requestId"}) public ConditionalAppend(java.util.UUID writerId, long eventNumber, long expectedOffset, WireCommands.Event event, long requestId)
-
-
Method Detail
-
writeFields
public void writeFields(java.io.DataOutput out) throws java.io.IOException- Specified by:
writeFieldsin interfaceWireCommand- Throws:
java.io.IOException
-
readFrom
public static WireCommand readFrom(EnhancedByteBufInputStream in, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
getRequestId
public long getRequestId()
- Specified by:
getRequestIdin interfaceRequest
-
process
public void process(RequestProcessor cp)
-
getType
public WireCommandType getType()
- Specified by:
getTypein interfaceWireCommand
-
getWriterId
public java.util.UUID getWriterId()
-
getEventNumber
public long getEventNumber()
-
getExpectedOffset
public long getExpectedOffset()
-
getEvent
public WireCommands.Event getEvent()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-