Class PostSubscriptionCallback
java.lang.Object
com.graphql_java_generator.samples.forum.client.subscription.PostSubscriptionCallback
- All Implemented Interfaces:
SubscriptionCallback<Post>
- Author:
- etienne-sf
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Indicates whether the Web Socket is connected or notprotected static org.slf4j.Logger
The logger for this classint
-
Constructor Summary
-
Method Summary
-
Field Details
-
logger
protected static org.slf4j.Logger loggerThe logger for this class -
connected
public boolean connectedIndicates whether the Web Socket is connected or not -
nbReceivedMessages
public int nbReceivedMessages -
lastReceivedMessage
-
lastReceivedClose
-
lastReceivedError
-
latchNewMessage
-
-
Constructor Details
-
PostSubscriptionCallback
public PostSubscriptionCallback()
-
-
Method Details
-
onConnect
public void onConnect()- Specified by:
onConnect
in interfaceSubscriptionCallback<Post>
-
onMessage
- Specified by:
onMessage
in interfaceSubscriptionCallback<Post>
-
onClose
- Specified by:
onClose
in interfaceSubscriptionCallback<Post>
-
onError
- Specified by:
onError
in interfaceSubscriptionCallback<Post>
-