use of io.zeebe.broker.taskqueue.data.TaskEvent in project zeebe by zeebe-io.
the class POJOMappingBenchmark method performReadingReverseOrder.
@Benchmark
@Threads(1)
public void performReadingReverseOrder(POJOMappingContext ctx) {
final TaskEvent taskEvent = ctx.getTaskEvent();
final DirectBuffer encodedTaskEvent = ctx.getReverseOrderEncodedTaskEvent();
taskEvent.reset();
taskEvent.wrap(encodedTaskEvent, 0, encodedTaskEvent.capacity());
}
use of io.zeebe.broker.taskqueue.data.TaskEvent in project zeebe by zeebe-io.
the class POJOMappingBenchmark method performReadingOptimalOrder.
@Benchmark
@Threads(1)
public void performReadingOptimalOrder(POJOMappingContext ctx) {
final TaskEvent taskEvent = ctx.getTaskEvent();
final DirectBuffer encodedTaskEvent = ctx.getOptimalOrderEncodedTaskEvent();
taskEvent.reset();
taskEvent.wrap(encodedTaskEvent, 0, encodedTaskEvent.capacity());
}
use of io.zeebe.broker.taskqueue.data.TaskEvent in project zeebe by zeebe-io.
the class POJOMappingBenchmark method performMappingCycleReverseEncodedOrder.
@Benchmark
@Threads(1)
public void performMappingCycleReverseEncodedOrder(POJOMappingContext ctx) throws Exception {
final TaskEvent taskEvent = ctx.getTaskEvent();
final DirectBuffer encodedTaskEvent = ctx.getReverseOrderEncodedTaskEvent();
final MutableDirectBuffer writeBuffer = ctx.getWriteBuffer();
taskEvent.reset();
taskEvent.wrap(encodedTaskEvent, 0, encodedTaskEvent.capacity());
taskEvent.write(writeBuffer, 0);
}
use of io.zeebe.broker.taskqueue.data.TaskEvent in project zeebe by zeebe-io.
the class POJOMappingBenchmark method performMappingCycleOptimalEncodedOrder.
@Benchmark
@Threads(1)
public void performMappingCycleOptimalEncodedOrder(POJOMappingContext ctx) throws Exception {
final TaskEvent taskEvent = ctx.getTaskEvent();
final DirectBuffer encodedTaskEvent = ctx.getOptimalOrderEncodedTaskEvent();
final MutableDirectBuffer writeBuffer = ctx.getWriteBuffer();
taskEvent.reset();
taskEvent.wrap(encodedTaskEvent, 0, encodedTaskEvent.capacity());
taskEvent.write(writeBuffer, 0);
}
Aggregations