public interface WorkQueue
Modifier and Type | Method and Description |
---|---|
void |
execute(Runnable job) |
int |
getPriority() |
void |
resetMaxJobQueued()
Reset the value max
|
void |
setPriority(int newPriority)
Change the piority for all threads
|
int |
size() |
int |
size(int newSize)
manage the size of the pool of thread ( increment , reduce )
|
int |
sizeJobQueued() |
int |
sizeMaxjobQueued()
Return the number max of job queued
|
void |
start() |
void |
stop() |
void setPriority(int newPriority) throws CiliaIllegalParameterException
newPriority
- CiliaIllegalParameterException
int getPriority()
int size()
int size(int newSize) throws CiliaIllegalParameterException
newSize
- CiliaIllegalParameterException
int sizeJobQueued()
void execute(Runnable job)
job
- asynchronous work executed inside the first thread readyint sizeMaxjobQueued()
void resetMaxJobQueued()
void start()
void stop()
Copyright © 2012-2013 Adele Team | LIG. All Rights Reserved.