Class Executor


  • public class Executor
    extends Object
    Best way to use VK API: you can call up to 25 vk api methods by call execute once Because without execute you only can call up to 3 methods per second

    See more: link

    • Field Detail

      • LOG_REQUESTS

        public static boolean LOG_REQUESTS
    • Constructor Detail

      • Executor

        public Executor​(Auth auth)
    • Method Detail

      • codeForExecute

        public String codeForExecute​(Call call)
        Method that makes string in json format from call object.
        Parameters:
        call - Call object
        Returns:
        String 'API.method.name({param:value})'
        See Also:
        Call, CallAsync, CallSync
      • execute

        public void execute​(CallAsync call)
        Method that puts all requests in a queue.
        Parameters:
        call - Call to be executed.