@FunctionalInterface public interface FragmentHandler
Note that the handler is not aware of fragment batches.
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSUME_FRAGMENT_RESULT
fragment consumed successfully *
|
static int |
FAILED_FRAGMENT_RESULT
fragment consumed with failure *
|
static int |
POSTPONE_FRAGMENT_RESULT
fragment not consumed *
|
| Modifier and Type | Method and Description |
|---|---|
int |
onFragment(org.agrona.DirectBuffer buffer,
int offset,
int length,
int streamId,
boolean isMarkedFailed)
Consume the message from the given buffer.
|
static final int CONSUME_FRAGMENT_RESULT
static final int POSTPONE_FRAGMENT_RESULT
static final int FAILED_FRAGMENT_RESULT
int onFragment(org.agrona.DirectBuffer buffer,
int offset,
int length,
int streamId,
boolean isMarkedFailed)
buffer - the buffer which contains the messageoffset - the message offset (i.e. the start position of the message in the buffer)length - the message lengthstreamId - the fragments stream idisMarkedFailed - true if a handler consumed this message previously with
failure (i.e. result was FAILED_FRAGMENT_RESULT).CONSUME_FRAGMENT_RESULT, FAILED_FRAGMENT_RESULT or POSTPONE_FRAGMENT_RESULT.Copyright © 2017–2018 camunda services GmbH. All rights reserved.