Uses of Class
org.mineskin.ClientBuilder
Packages that use ClientBuilder
-
Uses of ClientBuilder in org.mineskin
Methods in org.mineskin that return ClientBuilderModifier and TypeMethodDescriptionSet the API keySet the base URL for the APIstatic ClientBuilderMineSkinClient.builder()static ClientBuilderClientBuilder.create()Create a new ClientBuilderClientBuilder.generateExecutor(Executor generateExecutor) Set the Executor for generate requestsClientBuilder.generateQueueOptions(IQueueOptions queueOptions) Set the options for submitting queue jobs
defaults to 200ms interval and 1 concurrent request
For example:ClientBuilder.generateRequestScheduler(ScheduledExecutorService scheduledExecutor) Deprecated.ClientBuilder.getExecutor(Executor getExecutor) Set the Executor for get requestsClientBuilder.getQueueOptions(IQueueOptions queueOptions) Set the options for get requests, e.g. getting skins
defaults to 100ms interval and 5 concurrent requests
For example:ClientBuilder.getRequestScheduler(ScheduledExecutorService scheduledExecutor) Deprecated.useClientBuilder.getQueueOptions(IQueueOptions)insteadClientBuilder.gson(com.google.gson.Gson gson) Set the Gson instanceClientBuilder.jobCheckOptions(IJobCheckOptions jobCheckOptions) Set the options for checking job status
defaults to 1000ms interval, 2000ms initial delay, and 10 max attempts
For example:ClientBuilder.jobCheckScheduler(ScheduledExecutorService scheduledExecutor) Deprecated.useClientBuilder.jobCheckOptions(IJobCheckOptions)insteadClientBuilder.requestHandler(RequestHandlerConstructor requestHandlerConstructor) Set the constructor for the RequestHandlerClientBuilder.timeout(int timeout) Set the timeoutSet the User-Agent
ClientBuilder.generateQueueOptions(IQueueOptions)instead