Class CharacterSubscriptionCallback
java.lang.Object
com.graphql_java_generator.mavenplugin.samples.simple.client.subscription.CharacterSubscriptionCallback
- All Implemented Interfaces:
SubscriptionCallback<Character>
public class CharacterSubscriptionCallback
extends Object
implements SubscriptionCallback<Character>
- Author:
- etienne-sf
-
Field Summary
FieldsModifier and TypeFieldDescriptionA latch that will be freed when a the first notification arrives for this subscriptionprotected static org.slf4j.Logger
The logger for this instance -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
logger
protected static org.slf4j.Logger loggerThe logger for this instance -
latchForMessageReception
A latch that will be freed when a the first notification arrives for this subscription
-
-
Constructor Details
-
CharacterSubscriptionCallback
public CharacterSubscriptionCallback()
-
-
Method Details
-
onConnect
public void onConnect()- Specified by:
onConnect
in interfaceSubscriptionCallback<Character>
-
onMessage
- Specified by:
onMessage
in interfaceSubscriptionCallback<Character>
-
onClose
- Specified by:
onClose
in interfaceSubscriptionCallback<Character>
-
onError
- Specified by:
onError
in interfaceSubscriptionCallback<Character>
-