Constructor and Description |
---|
LimitSupport(ServerJob job,
Job clientJob)
Create a job dependent
LimitSupport (i.e. |
LimitSupport(WorkerController<? extends Node> controller)
Create a controller dependent
LimitSupport (i.e. |
Modifier and Type | Method and Description |
---|---|
<L extends Limit> |
getNextSignificantLimit(Class<L> limitType,
Limit.WhenExceedAction action)
Get the next
Limit of given Type and Action that is not exceeded yet and that will be
triggered on test(Class, long) . |
void |
test(Class<? extends Limit> limitType,
long count)
Test if the
Limit s of the given type were hit. |
public LimitSupport(WorkerController<? extends Node> controller)
LimitSupport
(i.e. in the context of a NodeWorker
).controller
- The controller where to emit warnings or failures if Limit
s are hit.public LimitSupport(ServerJob job, Job clientJob)
LimitSupport
(i.e. not in the context of a
NodeWorker
).public <L extends Limit> L getNextSignificantLimit(Class<L> limitType, Limit.WhenExceedAction action)
Limit
of given Type and Action that is not exceeded yet and that will be
triggered on test(Class, long)
.L
- Limit typelimitType
- Class of the Limit type to look foraction
- The action to look forCopyright © 2017 levigo holding gmbh. All rights reserved.