@Override
  public void execute(FunctionContext<String[]> context) {
    final Cache cache = context.getCache();
    final String memberNameOrId =
        CliUtils.getMemberNameOrId(cache.getDistributedSystem().getDistributedMember());
    String[] args = context.getArguments();
    String durableClientId = args[0];
    String cqName = args[1];

    context.getResultSender()
        .lastResult(createFunctionResult(memberNameOrId, durableClientId, cqName));

  }
Function to get subscription-queue-size
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/functions/GetSubscriptionQueueSizeFunction.java