Interface ChannelAction

  • 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 ChannelAction
    The ChannelAction interface should be implemented when registering actions by ChannelProvider or ChannelClient
    Author:
    Anthony
    • Method Detail

      • invoke

        Object invoke​(String action,
                      Object payload,
                      org.json.JSONObject senderIdentity)
        Channel action to be invoked.
        Parameters:
        action - Name of the action to be registered
        payload - Payload sent along when invoking the action.
        senderIdentity - Identity of the sender.
        Returns:
        Result by invoking the action..