|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FacadePool
This extends a ResourcePool to handle facades of the resources in the pool.
| Method Summary | ||
|---|---|---|
|
addFacadeListener(Class<T> facadeClass,
FacadeListener<? super T> listener)
|
|
|
facade(Class<T> facadeClass)
Provides a pool interface with the same functions as this interface but that is strictly typified to the specified facade type. |
|
|
getAll(Class<T> facadeClass)
Returns facades for all resources that matches the specified facade class. |
|
|
getAll(Class<T> facadeClass,
FacadeFilter<? super T> filter)
Returns facades for all resources that pass the specified filter and match the specified facade class. |
|
|
getAny(Class<T> facadeClass)
Returns a facade for the first resource that matches the specified facade class. |
|
|
getAny(Class<T> facadeClass,
FacadeFilter<? super T> filter)
Returns a facade for the first resource that passes the specified filter and matches the specified facade class. |
|
|
getAny(Class<T> facadeClass,
FacadeFilter<? super T> filter,
long duration,
TimeUnit unit)
Returns the first facade that matches the filter within the given time. |
|
|
getFacade(Class<T> facadeClass,
com.kuka.resource.IResource resource)
Tries to create a facade of the specified type for the specified resource. |
|
void |
removeFacadeListener(FacadeListener<?> listener)
|
|
int |
size()
|
|
| Method Detail |
|---|
int size()
<T> TypedFacadePool<T> facade(Class<T> facadeClass)
T - The facade type.facadeClass - The type of facade to restrict to.
<T> T getAny(Class<T> facadeClass)
T - The facade type.facadeClass - A facade class.
<T> T getAny(Class<T> facadeClass,
FacadeFilter<? super T> filter)
T - The facade type.facadeClass - A facade class.filter - A facade filter.
<T> T getAny(Class<T> facadeClass,
FacadeFilter<? super T> filter,
long duration,
TimeUnit unit)
throws InterruptedException
T - The facade type.facadeClass - A facade class.filter - a facade filterduration - the time to wait till a match is foundunit - the time unit of the timeout
InterruptedException<T> Collection<T> getAll(Class<T> facadeClass)
T - The facade type.facadeClass - A facade class.
<T> Collection<T> getAll(Class<T> facadeClass,
FacadeFilter<? super T> filter)
T - The facade type.facadeClass - A facade class.filter - A facade filter.
<T> T getFacade(Class<T> facadeClass,
com.kuka.resource.IResource resource)
T - The type of the facade.facadeClass - A facade class.resource - The resource to create a facade for.
<T> void addFacadeListener(Class<T> facadeClass,
FacadeListener<? super T> listener)
T - The type of the facade.facadeClass - A facade class.listener - A listener to be notified of resources going on- or offline in the pool.void removeFacadeListener(FacadeListener<?> listener)
listener - the listener to stop receiving notifications.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||