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 Type
    Method
    Description
    default Object
    doWithClient(C client)
    Called within the context of a Session.
    void
    Called within the context of a session.
  • Method Details

    • doWithClient

      default Object doWithClient(C client)
      Description copied from interface: ClientCallback
      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.
      Specified by:
      doWithClient in interface ClientCallback<C,Object>
      Parameters:
      client - The client instance.
      Returns:
      The return value.
    • doWithClientWithoutResult

      void doWithClientWithoutResult(C client)
      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.