Interface SubscriptionTransport
-
public interface SubscriptionTransportApolloSubscriptionCallis 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 viaSubscriptionTransport.Callback
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSubscriptionTransport.CallbackCommunicates responses from a subscription server.static interfaceSubscriptionTransport.FactoryFactory for creating newSubscriptionTransporttransport layer.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnect()Opens connection to the subscription servervoiddisconnect(com.apollographql.apollo.subscription.OperationClientMessage message)Disconnects from the subscription server.voidsend(com.apollographql.apollo.subscription.OperationClientMessage message)SendsOperationClientMessagemessage to the subscription server.
-
-
-
Method Detail
-
connect
void connect()
Opens connection to the subscription server
-
disconnect
void disconnect(com.apollographql.apollo.subscription.OperationClientMessage message)
Disconnects from the subscription server.- Parameters:
message- to be sent as terminal event.
-
send
void send(com.apollographql.apollo.subscription.OperationClientMessage message)
SendsOperationClientMessagemessage to the subscription server.- Parameters:
message- to be sent to the server
-
-