public abstract class ActivityHelper<T extends Activity> extends Object 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) |
public ActivityHelper(String activityName, ActivityCallback<T> callback)
public void startActivity(boolean sendEvents)
protected abstract boolean doActivity() throws PBXException
PBXException
public boolean validateChannel(Channel channel)
public boolean isSuccess()
Activity
protected void setLastException(PBXException e)
public Throwable getLastException()
Activity
getLastException
in interface Activity
public abstract ListenerPriority getPriority()
Copyright © 2004–2020. All rights reserved.