Package com.github.twitch4j.common.pool
Interface TransactionalSubscriber<S,T,U>
- Type Parameters:
S- subscription requestT- transactional response to the subscription request that can be used as an unsubscription requestU- 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
-
Method Details
-
subscribe
Submits a subscription request.- Parameters:
s- the subscription request- Returns:
- a response to the request
-
unsubscribe
Submits an unsubscription request.- Parameters:
t- the unsubscription request- Returns:
- a response to the request
-