Interface IntentRequestHandler<T,R>

Type Parameters:
T - type of the request data
R - type of the returned data
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 IntentRequestHandler<T,R>
Callback that will handle raised intent.

Compared to IntentContextHandler this callback accepts the caller instance in addition to provided context.

Since:
1.7.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(IntentContext<T> context, Instance caller)
     
  • Method Details

    • handle

      R handle(IntentContext<T> context, Instance caller)
      Parameters:
      context - context if provided by the raising application caller
      caller - the interop instance which raised the intent
      Returns:
      data