class PendingActionManager[T] extends AnyRef
Represents a manager of pending actions that can be added and performed.
- T
The type of information associated with the action
- Alphabetic
- By Inheritance
- PendingActionManager
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new PendingActionManager()
Type Members
-
type
ActionData = T
Represents the data associated with an action
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addPendingAction(actionData: ActionData, action: Action): ActionId
Adds the action to a new collection of actions.
Adds the action to a new collection of actions.
- actionData
The data about the action being added
- action
The action to add
- returns
The id of the collection where the action was added
-
def
addPendingActionWithId(actionId: ActionId, actionInfoData: ActionData, action: Action): ActionId
Adds the action to a collection under the specified id.
Adds the action to a collection under the specified id.
- actionId
The id of the collection of actions to add to
- actionInfoData
The data about the action being added
- action
The action to add
- returns
The id of the collection where the action was added
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
cleanupActions(): Unit
Removes any action collection that is null or empty.
Removes any action collection that is null or empty.
- Attributes
- protected
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getPendingActionData(predicate: (ActionInfo[ActionData]) ⇒ Boolean): Seq[ActionData]
Retrieves a collection of information for actions using the provided predicate.
Retrieves a collection of information for actions using the provided predicate.
- predicate
The predicate to use when looking for actions based on their information (true indicates include the action)
- returns
The collection of information for actions
-
def
getPendingActionDataWithId(actionId: ActionId): Option[Seq[ActionData]]
Retrieves a collection of information for actions with the specified id.
Retrieves a collection of information for actions with the specified id.
- actionId
The id of the collection of actions to retrieve
- returns
Some collection of actions if the id exists, otherwise None
-
def
getPendingActions(predicate: (ActionInfo[ActionData]) ⇒ Boolean): Seq[ActionInfo[ActionData]]
Retrieves a collection of actions using the provided predicate.
Retrieves a collection of actions using the provided predicate.
- predicate
The predicate to use when looking for actions based on their information (true indicates include the action)
- returns
The collection of actions and their information
-
def
getPendingActionsWithId(actionId: ActionId): Option[Seq[ActionInfo[ActionData]]]
Retrieves a collection of actions by the specified id.
Retrieves a collection of actions by the specified id.
- actionId
The id of the collection of actions to retrieve
- returns
Some collection of actions if the id exists, otherwise None
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newActionId(): ActionId
Generates an id for a new action.
Generates an id for a new action.
- returns
The id as a string
- Attributes
- protected
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
processActionCollectionMap(actionCollectionMap: Map[ActionId, Seq[ActionInfo[ActionData]]]): Seq[ActionInfo[ActionData]]
Processes a map of collections of actions.
Processes a map of collections of actions.
- actionCollectionMap
The map of action id -> action collection whose actions to process
- returns
The collection of information of actions that were successfully processed
- Attributes
- protected
-
def
processActions(predicate: (ActionInfo[ActionData]) ⇒ Boolean): Seq[ActionInfo[ActionData]]
Processes actions whose predicate yields true.
Processes actions whose predicate yields true.
- predicate
The predicate to use when looking for actions based on their information (true indicates processing action)
- returns
The collection of action info for successfully-completed actions
-
def
processActionsWithId(actionId: ActionId): Option[Seq[ActionInfo[ActionData]]]
Processes the actions under a collection with the specified id.
Processes the actions under a collection with the specified id.
- actionId
The id of the collection of actions to process
- returns
Some collection of action info for successfully-completed actions if the collection with the id exists, otherwise None
-
def
processAllActions(): Seq[ActionInfo[ActionData]]
Processes all actions.
Processes all actions.
- returns
The collection of action info for successfully-completed actions
-
def
removePendingActions(predicate: (ActionInfo[ActionData]) ⇒ Boolean): Seq[ActionInfo[ActionData]]
Removes any actions using the provided predicate.
Removes any actions using the provided predicate.
- predicate
The predicate to use when looking for actions to remove based on their information (true indicates removal)
- returns
The collection of removed actions by their info
-
def
removePendingActionsWithId(actionId: ActionId): Option[Seq[ActionInfo[ActionData]]]
Removes a collection of actions by the specified id.
Removes a collection of actions by the specified id.
- actionId
The id of the collection of actions to remove
- returns
Some collection of actions if the id exists, otherwise None
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )