Interface ClientCallbackWithoutResult<C>
- Type Parameters:
C
- The type of the underlying client object.
- All Superinterfaces:
ClientCallback<C,
Object>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@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.- Since:
- 4.1
- Author:
- Gary Russell, Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptiondefault Object
doWithClient
(C client) Called within the context of aSession
.void
doWithClientWithoutResult
(C client) Called within the context of a session.
-
Method Details
-
doWithClient
Description copied from interface:ClientCallback
Called within the context of aSession
. 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.- Specified by:
doWithClient
in interfaceClientCallback<C,
Object> - Parameters:
client
- The client instance.- Returns:
- The return value.
-
doWithClientWithoutResult
Called within the context of a 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.- Parameters:
client
- The client.
-