public static interface Client.ChunkListener
| Modifier and Type | Method and Description |
|---|---|
void |
handle(Client client,
byte subscriptionId,
long offset,
long messageCount,
long dataSize)
Callback when a chunk is received as part of a deliver operation.
|
void handle(Client client, byte subscriptionId, long offset, long messageCount, long dataSize)
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 in Long.
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 chunkCopyright © 2021 VMware, Inc. or its affiliates.. All rights reserved.