public class RendezvousingWorkHandler extends Object implements PherfWorkHandler<BaseLoadEventGenerator.TenantOperationEvent>, com.lmax.disruptor.LifecycleAware
WorkHandler for simple orchestrations using the supplied rendezvous points
The handler will wait for the rendezvous to happen before executing the operations Operation
The handlers as in the basic TenantOperationWorkHandler will pick up the operation events
as and when they become available on the RingBuffer
when published by the workload generator MultiTenantWorkload| Constructor and Description |
|---|
RendezvousingWorkHandler(TenantOperationFactory operationFactory,
String handlerId,
Map<String,CyclicBarrier> rendezvousPoints) |
| Modifier and Type | Method and Description |
|---|---|
List<ResultValue<OperationStats>> |
getResults() |
void |
onEvent(BaseLoadEventGenerator.TenantOperationEvent event) |
void |
onShutdown() |
void |
onStart() |
public RendezvousingWorkHandler(TenantOperationFactory operationFactory, String handlerId, Map<String,CyclicBarrier> rendezvousPoints)
public void onEvent(BaseLoadEventGenerator.TenantOperationEvent event) throws Exception
onEvent in interface com.lmax.disruptor.WorkHandler<BaseLoadEventGenerator.TenantOperationEvent>Exceptionpublic void onStart()
onStart in interface com.lmax.disruptor.LifecycleAwarepublic void onShutdown()
onShutdown in interface com.lmax.disruptor.LifecycleAwarepublic List<ResultValue<OperationStats>> getResults()
getResults in interface PherfWorkHandler<BaseLoadEventGenerator.TenantOperationEvent>Copyright © 2022 Apache Software Foundation. All rights reserved.