Package org.apache.cassandra.net
Class AbstractMessageHandler.LargeMessage<H>
- java.lang.Object
-
- org.apache.cassandra.net.AbstractMessageHandler.LargeMessage<H>
-
- Enclosing class:
- AbstractMessageHandler
protected abstract class AbstractMessageHandler.LargeMessage<H> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ShareableBytes>buffersprotected longexpiresAtNanosprotected Hheaderprotected booleanisCorruptprotected booleanisExpiredprotected intreceivedprotected intsize
-
Constructor Summary
Constructors Modifier Constructor Description protectedLargeMessage(int size, H header, long expiresAtNanos, boolean isExpired)protectedLargeMessage(int size, H header, long expiresAtNanos, ShareableBytes bytes)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidabort()protected abstract voidonComplete()protected voidonCorruptFrame()protected voidonIntactFrame(FrameDecoder.IntactFrame frame)protected voidreleaseBuffers()protected voidreleaseBuffersAndCapacity()booleansupply(FrameDecoder.Frame frame)Return true if this was the last frame of the large message.
-
-
-
Field Detail
-
size
protected final int size
-
header
protected final H header
-
buffers
protected final java.util.List<ShareableBytes> buffers
-
received
protected int received
-
expiresAtNanos
protected final long expiresAtNanos
-
isExpired
protected boolean isExpired
-
isCorrupt
protected boolean isCorrupt
-
-
Constructor Detail
-
LargeMessage
protected LargeMessage(int size, H header, long expiresAtNanos, boolean isExpired)
-
LargeMessage
protected LargeMessage(int size, H header, long expiresAtNanos, ShareableBytes bytes)
-
-
Method Detail
-
supply
public boolean supply(FrameDecoder.Frame frame)
Return true if this was the last frame of the large message.
-
onIntactFrame
protected void onIntactFrame(FrameDecoder.IntactFrame frame)
-
onCorruptFrame
protected void onCorruptFrame()
-
onComplete
protected abstract void onComplete()
-
abort
protected abstract void abort()
-
releaseBuffers
protected void releaseBuffers()
-
releaseBuffersAndCapacity
protected void releaseBuffersAndCapacity()
-
-