C
- The type of the underlying client object.@FunctionalInterface public interface ClientCallbackWithoutResult<C> extends ClientCallback<C,Object>
RemoteFileTemplate
callback with the underlying client instance providing
access to lower level methods where no result is returned.Modifier and Type | Method and Description |
---|---|
default Object |
doWithClient(C client)
Called within the context of a
Session . |
void |
doWithClientWithoutResult(C client)
Called within the context of a session.
|
default Object doWithClient(C client)
ClientCallback
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.doWithClient
in interface ClientCallback<C,Object>
client
- The client instance.void doWithClientWithoutResult(C client)
client
- The client.