Package com.vk.api.sdk.streaming.clients
Class VkStreamingApiClient
- java.lang.Object
-
- com.vk.api.sdk.streaming.clients.VkStreamingApiClient
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class VkStreamingApiClient extends java.lang.Object implements java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description VkStreamingApiClient(TransportClient transportClient)VkStreamingApiClient(TransportClient transportClient, com.google.gson.Gson gson, org.asynchttpclient.AsyncHttpClient asyncHttpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.asynchttpclient.AsyncHttpClientgetAsyncHttpClient()com.google.gson.GsongetGson()TransportClientgetTransportClient()StreamingRulesrules()StreamingStreamstream()
-
-
-
Constructor Detail
-
VkStreamingApiClient
public VkStreamingApiClient(TransportClient transportClient)
-
VkStreamingApiClient
public VkStreamingApiClient(TransportClient transportClient, com.google.gson.Gson gson, org.asynchttpclient.AsyncHttpClient asyncHttpClient)
-
-
Method Detail
-
getGson
public com.google.gson.Gson getGson()
-
getTransportClient
public TransportClient getTransportClient()
-
getAsyncHttpClient
public org.asynchttpclient.AsyncHttpClient getAsyncHttpClient()
-
rules
public StreamingRules rules()
-
stream
public StreamingStream stream()
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-