Class CAClientUserIdSubscriber
java.lang.Object
com.io7m.cardant.client.basic.internal.CAClientUserIdSubscriber
- All Implemented Interfaces:
AutoCloseable,Flow.Subscriber<com.io7m.hibiscus.api.HBStateType<?,CAIResponseType, CAIResponseError, CAClientCredentials>>
public final class CAClientUserIdSubscriber
extends Object
implements Flow.Subscriber<com.io7m.hibiscus.api.HBStateType<?,CAIResponseType,CAIResponseError,CAClientCredentials>>, AutoCloseable
A subscriber that tracks user IDs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidvoidonNext(com.io7m.hibiscus.api.HBStateType<?, CAIResponseType, CAIResponseError, CAClientCredentials> item) voidonSubscribe(Flow.Subscription newSubscription) toString()
-
Constructor Details
-
CAClientUserIdSubscriber
public CAClientUserIdSubscriber()A subscriber that tracks user IDs.
-
-
Method Details
-
getUserId
- Returns:
- The current user ID
-
onSubscribe
- Specified by:
onSubscribein interfaceFlow.Subscriber<com.io7m.hibiscus.api.HBStateType<?,CAIResponseType, CAIResponseError, CAClientCredentials>>
-
onNext
public void onNext(com.io7m.hibiscus.api.HBStateType<?, CAIResponseType, CAIResponseError, CAClientCredentials> item) - Specified by:
onNextin interfaceFlow.Subscriber<com.io7m.hibiscus.api.HBStateType<?,CAIResponseType, CAIResponseError, CAClientCredentials>>
-
onError
- Specified by:
onErrorin interfaceFlow.Subscriber<com.io7m.hibiscus.api.HBStateType<?,CAIResponseType, CAIResponseError, CAClientCredentials>>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceFlow.Subscriber<com.io7m.hibiscus.api.HBStateType<?,CAIResponseType, CAIResponseError, CAClientCredentials>>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
toString
-