object Tags
- Alphabetic
- By Inheritance
- Tags
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
class
Rule extends AnyRef
Describes a restriction on concurrently executing tasks.
Describes a restriction on concurrently executing tasks. A Rule is constructed using one of the Tags.limit* methods.
- type Tag = ConcurrentRestrictions.Tag
- type TagMap = Map[ConcurrentRestrictions.Tag, Int]
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
- val All: ConcurrentRestrictions.Tag
- val CPU: Tag
- val Clean: Tag
- val Compile: Tag
- val Disk: Tag
- val ForkedTestGroup: Tag
- val Network: Tag
- val Publish: Tag
- val Sentinel: Tag
- def Tag(s: String): Tag
- val Test: Tag
- val Untagged: ConcurrentRestrictions.Tag
- val Update: Tag
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
customLimit(f: (TagMap) ⇒ Boolean): Rule
Constructs a custom Rule from the predicate
f
.Constructs a custom Rule from the predicate
f
. The input represents the weighted tags of a set of tasks. The functionf
should return true if those tasks are allowed to execute concurrently and false if they are not.If there is only one task represented by the map, it must be allowed to execute.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exclusive(exclusiveTag: Tag): Rule
Ensure that a task with the given tag always executes in isolation.
-
def
exclusiveGroup(exclusiveTag: Tag): Rule
Ensure that a task with the given tag only executes with tasks also tagged with the given tag.
-
def
exclusiveGroups(exclusiveTags: Tag*): Rule
A task tagged with one of
exclusiveTags
will not execute with another task with any of the other tags inexclusiveTags
. -
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getInt(m: TagMap, tag: Tag): Int
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
limit(tag: Tag, max: Int): Rule
Returns a Rule that limits the maximum number of concurrent executing tasks tagged with
tag
tomax
. -
def
limitAll(max: Int): Rule
Returns a Rule that limits the maximum number of concurrently executing tasks to
max
, regardless of tags. - def limitSum(max: Int, tags: Tag*): Rule
-
def
limitUntagged(max: Int): Rule
Returns a Rule that limits the maximum number of concurrently executing tasks without a tag to
max
. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
predicate(rules: Seq[Rule]): (TagMap) ⇒ Boolean
Converts a sequence of rules into a function that identifies whether a set of tasks are allowed to execute concurrently based on their merged tags.
-
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( ... ) @native()