C
- The type of the underlying client object.T
- The return type of the callback method.@FunctionalInterface public interface ClientCallback<C,T>
RemoteFileTemplate
callback with the underlying client instance providing
access to lower level methods.Modifier and Type | Method and Description |
---|---|
T |
doWithClient(C client)
Called within the context of a
Session . |
T doWithClient(C client)
Session
. Perform some
operation(s) on the client instance underlying the session. The caller will take
care of closing the session after this method exits. However, the implementation is
required to perform any clean up required by the client after performing
operations.client
- The client instance.