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 Summary

    Modifier and Type Method Description
    java.lang.Object invoke​(java.lang.String action, java.lang.Object payload, org.json.JSONObject senderIdentity)
    Channel action to be invoked.
  • Method Details

    • invoke

      java.lang.Object invoke​(java.lang.String action, java.lang.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..