public class TenantOperationWorkHandler extends Object implements PherfWorkHandler<BaseLoadEventGenerator.TenantOperationEvent>, com.lmax.disruptor.LifecycleAware
WorkHandler for
executing the operations Operation
as and when they become available on the RingBuffer
when published by the workload generator MultiTenantWorkload| Constructor and Description |
|---|
TenantOperationWorkHandler(TenantOperationFactory operationFactory,
String handlerId) |
| Modifier and Type | Method and Description |
|---|---|
List<ResultValue<OperationStats>> |
getResults() |
void |
onEvent(BaseLoadEventGenerator.TenantOperationEvent event) |
void |
onShutdown() |
void |
onStart() |
public TenantOperationWorkHandler(TenantOperationFactory operationFactory, String handlerId)
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 © 2023 Apache Software Foundation. All rights reserved.