Package com.rabbitmq.stream.impl
Interface Client.ChunkListener
- Enclosing class:
Client
public static interface Client.ChunkListener
-
Method Summary
-
Method Details
-
handle
Callback when a chunk is received as part of a deliver operation.Note the offset is an unsigned long. Longs are signed in Java, but unsigned longs can be used as long as some care is taken for some operations. See the
unsigned*
static methods inLong
.- Parameters:
client
- the client instance (e.g. to ask for more credit)subscriptionId
- the subscription ID to correlate with a callbackoffset
- the first offset in the chunkmessageCount
- the total number of messages in the chunkdataSize
- the size in bytes of the data in the chunk- Returns:
- a "chunk context" instance that'll be passed in to the
Client.MessageListener
-