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