Interface TransactionalSubscriber<S,T,U>

Type Parameters:
S - subscription request
T - transactional response to the subscription request that can be used as an unsubscription request
U - unsubscription response
All Known Implementing Classes:
SubscriptionConnectionPool, TwitchChatConnectionPool, TwitchModuleConnectionPool, TwitchPubSubConnectionPool, TwitchSingleUserEventSocketPool

public interface TransactionalSubscriber<S,T,U>
Generic interface for objects that can respond to a subscription request, S, with a response, T, which can later be used for unsubscription to yield U.
  • Method Summary

    Modifier and Type
    Method
    Description
    Submits a subscription request.
    Submits an unsubscription request.
  • Method Details

    • subscribe

      T subscribe(S s)
      Submits a subscription request.
      Parameters:
      s - the subscription request
      Returns:
      a response to the request
    • unsubscribe

      U unsubscribe(T t)
      Submits an unsubscription request.
      Parameters:
      t - the unsubscription request
      Returns:
      a response to the request