Constructor and Description |
---|
JobClientProvider(Collection<? extends JobClient> clients)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
count()
Returns the number of available clients.
|
JobClient |
get()
Returns a client.
|
void |
setError(JobClient client)
Tells the error occurred while using the client.
|
public JobClientProvider(Collection<? extends JobClient> clients)
clients
- the componentsIllegalArgumentException
- if clients
was null or emptypublic int count()
public JobClient get()
public void setError(JobClient client)
client
- the client which was failedIllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.