public interface SubscriptionTransport
ApolloSubscriptionCall is an abstraction for network transport layer that handles connection to the
subscription server. All updates related to the subscription pushed from the server will be delivered via SubscriptionTransport.Callback
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SubscriptionTransport.Callback
Communicates responses from a subscription server.
|
static interface |
SubscriptionTransport.Factory
Factory for creating new
SubscriptionTransport transport layer. |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Opens connection to the subscription server
|
void |
disconnect(OperationClientMessage message)
Disconnects from the subscription server.
|
void |
send(OperationClientMessage message)
Sends
OperationClientMessage message to the subscription server. |
void connect()
void disconnect(OperationClientMessage message)
message - to be sent as terminal event.void send(OperationClientMessage message)
OperationClientMessage message to the subscription server.message - to be sent to the server