Interface SessionCallbackWithoutResult<F>

Type Parameters:
F - the target system file type.
All Superinterfaces:
SessionCallback<F,​java.lang.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 SessionCallbackWithoutResult<F>
extends SessionCallback<F,​java.lang.Object>
Simple convenience implementation of SessionCallback for cases where no result is returned.
Since:
3.0
  • Method Summary

    Modifier and Type Method Description
    default java.lang.Object doInSession​(Session<F> session)
    Called within the context of a session.
    void doInSessionWithoutResult​(Session<F> session)
    Called within the context of a session.
  • Method Details

    • doInSession

      default java.lang.Object doInSession​(Session<F> session) throws java.io.IOException
      Description copied from interface: SessionCallback
      Called within the context of a session. Perform some operation(s) on the session. The caller will take care of closing the session after this method exits.
      Specified by:
      doInSession in interface SessionCallback<F,​java.lang.Object>
      Parameters:
      session - The session.
      Returns:
      The result of type T.
      Throws:
      java.io.IOException - Any IOException.
    • doInSessionWithoutResult

      void doInSessionWithoutResult​(Session<F> session) throws java.io.IOException
      Called within the context of a session. Perform some operation(s) on the session. The caller will take care of closing the session after this method exits.
      Parameters:
      session - The session.
      Throws:
      java.io.IOException - Any IOException.