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.
Callback for using the same session for multiple
RemoteFileTemplate operations.
- Since:
- 5.1
-
Method Summary
Modifier and TypeMethodDescriptiondoInOperations
(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
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.
-