public class ParticipantTask extends RetryTask
ParticipantTask
is a general task which
interacts with a participant.TransactionParticipant
,
TaskManager
Modifier and Type | Field and Description |
---|---|
(package private) ParticipantHandle |
handle |
(package private) Job |
myjob |
private static Logger |
operationsLogger |
DAYS, HOURS, MINUTES, SECONDS
Constructor and Description |
---|
ParticipantTask(TaskManager manager,
WakeupManager wm,
Job myjob,
ParticipantHandle handle)
Constructs a
ParticipantTask . |
Modifier and Type | Method and Description |
---|---|
boolean |
runAfter(List list,
int max)
Inherit doc comment from supertype.
|
boolean |
tryOnce()
Make a single attempt.
|
ParticipantHandle handle
Job myjob
private static final Logger operationsLogger
public ParticipantTask(TaskManager manager, WakeupManager wm, Job myjob, ParticipantHandle handle)
ParticipantTask
.manager
- TaskManager
providing the threads
of execution.myjob
- Job
to which this task belongs.handle
- ParticipantHandle
representing the
TransactionParticipant
with which
this task interacts.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.