public abstract class ActivityHelper<T extends Activity> extends Lockable implements Runnable, Activity
| Constructor and Description |
|---|
ActivityHelper(String activityName,
ActivityCallback<T> callback) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
doActivity() |
Throwable |
getLastException()
If an activity fails the getLastError contains a description of the cause
of the error.
|
abstract ListenerPriority |
getPriority() |
boolean |
isSuccess()
Set to true once the activity has suceeded.
|
void |
progess(T activity,
String message) |
void |
run() |
protected void |
setLastException(PBXException e) |
void |
startActivity(boolean sendEvents) |
boolean |
validateChannel(Channel channel) |
getDumpRateLimit, withLockpublic ActivityHelper(String activityName, ActivityCallback<T> callback)
public void startActivity(boolean sendEvents)
protected abstract boolean doActivity()
throws PBXException
PBXExceptionpublic boolean validateChannel(Channel channel)
public boolean isSuccess()
Activityprotected void setLastException(PBXException e)
public Throwable getLastException()
ActivitygetLastException in interface Activitypublic abstract ListenerPriority getPriority()
Copyright © 2004–2022. All rights reserved.