public final class ActorRuntimeHelper extends Object
Modifier and Type | Method and Description |
---|---|
protected static <MessageType> |
createMessageData(MessageType msg)
createMessageData.
|
static LingeringActivity |
newLingeringActivity(String name,
HjPlace hjPlace)
newLingeringActivity.
|
static HabaneroActivity |
newRunnableActivity(LingeringActivity parentActivity,
String name,
Runnable runnable)
newRunnableActivity.
|
static void |
resumeLingeringActivity(LingeringActivity activity)
resumeLingeringActivity.
|
protected static <MessageType> |
triggerListener(Actor.EventType eventType,
CompanionMetrics companionMetrics,
Actor.MessageData<MessageType> rawMessage)
triggerListener.
|
public static HabaneroActivity newRunnableActivity(LingeringActivity parentActivity, String name, Runnable runnable)
newRunnableActivity.
parentActivity
- the 'parent' activity for the new activityname
- name of the activityrunnable
- the runnable block to execute inside the activitypublic static LingeringActivity newLingeringActivity(String name, HjPlace hjPlace)
newLingeringActivity.
name
- name of the activitypublic static void resumeLingeringActivity(LingeringActivity activity)
resumeLingeringActivity.
activity
- The lingering activity to completely execute.protected static <MessageType> MessageType triggerListener(Actor.EventType eventType, CompanionMetrics companionMetrics, Actor.MessageData<MessageType> rawMessage)
triggerListener.
MessageType
- a MessageType object.eventType
- a Actor.EventType
object.companionMetrics
- a CompanionMetrics
object.rawMessage
- a Actor.MessageData
object.protected static <MessageType> Actor.MessageData<MessageType> createMessageData(MessageType msg)
createMessageData.
MessageType
- a MessageType object.msg
- a MessageType object.Actor.MessageData
object.Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.