Interface MatrixUserCall<T>

Type Parameters:
T - the operation result type
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 MatrixUserCall<T>
A Matrix client API operation run with one account's access token, which MatrixService mints and refreshes once when Synapse rejects it.
  • Method Summary

    Modifier and Type
    Method
    Description
    call(String accessToken)
    Runs the operation.
  • Method Details

    • call

      T call(String accessToken) throws Exception
      Runs the operation.
      Parameters:
      accessToken - the account's access token
      Returns:
      the operation result
      Throws:
      Exception - any failure of the operation, a MatrixUnauthorizedException when the token is rejected