Interface RemoteFileOperations.OperationsCallback<F,​T>

Type Parameters:
F - the type the operations accepts.
T - the type the callback returns.
Enclosing interface:
RemoteFileOperations<F>
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 static interface RemoteFileOperations.OperationsCallback<F,​T>
Callback for using the same session for multiple RemoteFileTemplate operations.
Since:
5.1
  • Method Summary

    Modifier and Type Method Description
    T doInOperations​(RemoteFileOperations<F> operations)
    Execute any number of operations using a dedicated remote session as long as those operations are performed on the template argument and on the calling thread.
  • Method Details

    • doInOperations

      T doInOperations​(RemoteFileOperations<F> operations)
      Execute any number of operations using a dedicated remote session as long as those operations are performed on the template argument and on the calling thread. The session will be closed when the callback exits.
      Parameters:
      operations - the RemoteFileOperations.
      Returns:
      the result of operations.