C - the client typeP - the client supplier typepublic interface ClientInstance<C,P> extends PropertiesReader
| Modifier and Type | Method and Description |
|---|---|
default void |
command(BiConsumer<C,P> consumer)
Execute the given consumer function with the
getClient() value and
getClientSupplier() value as its parameters. |
Application |
getApplication()
Get the application annotation associated with the client instance.
|
Instance<C> |
getClient()
Get client instance.
|
Optional<Instance<P>> |
getClientSupplier()
Get the client supplier instance.
|
String |
getFqn()
Get a unique fully qualified name associated with the virtual resource.
|
default <R> R |
query(BiFunction<C,P,R> function)
Execute the given function with the
getClient() value and
getClientSupplier() value as its parameters. |
findCollection, findMap, findProperty, getPropertiesReader, getPropertygetProperties, isEmptyString getFqn()
Application getApplication()
Optional<Instance<P>> getClientSupplier()
default <R> R query(BiFunction<C,P,R> function)
getClient() value and
getClientSupplier() value as its parameters. If client supplier is not present
null will passed in as client supplier value.R - function return typefunction - the functiondefault void command(BiConsumer<C,P> consumer)
getClient() value and
getClientSupplier() value as its parameters. If client supplier is not present
null will passed in as client supplier value.consumer - the consumer functionCopyright © 2016–2018 Testify Project. All rights reserved.