Interface Session.Action

All Known Subinterfaces:
AbstractKVCommand.KVAction, Session.RetryableTransactionalAction, Session.TransactionalAction, Session.TransactionalActionWithOptions
All Known Implementing Classes:
AbstractRaftCommand.RaftAction, AbstractTransactionRaftCommand.RaftTransactionAction, InfoCommand
Enclosing class:
Session
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 Session.Action
Callback interface used by Session.performSessionAction()
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run(Session session)
    Perform some action using the given Session.
  • Method Details

    • run

      void run(Session session) throws Exception
      Perform some action using the given Session.
      Parameters:
      session - current session
      Throws:
      Exception - if an error occurs