public final class FailTaskSuspend extends Object implements Task, EventHandler<SuspendEvent>
Constructor and Description |
---|
FailTaskSuspend() |
Modifier and Type | Method and Description |
---|---|
byte[] |
call(byte[] memento)
Called by the resourcemanager harness to execute the task.
|
void |
onNext(SuspendEvent event)
Handles an event.
|
@Inject public FailTaskSuspend()
public byte[] call(byte[] memento)
Task
public void onNext(SuspendEvent event) throws SimulatedTaskFailure
EventHandler
onNext
in interface EventHandler<SuspendEvent>
event
- an eventSimulatedTaskFailure
Copyright © 2016 The Apache Software Foundation. All rights reserved.