public interface SubscriptionProvider
SubscriptionProvider allows retrieval of accumulated subscription.
See SubscriptionVisitor and SubscriptionListener for description
of corresponding contracts.
AbstractRecordProvider or use RecordBuffer
as a high-performance implementation of it when data is available in advance.
New code is also discouraged from using this interface unless it is need for interoperability with
legacy code. Various legacy APIs will be gradually migrated to NG interfaces and classes.| Modifier and Type | Method and Description |
|---|---|
boolean |
retrieveSubscription(SubscriptionVisitor visitor)
Retrieves accumulated subscription into specified subscription visitor.
|
void |
setSubscriptionListener(SubscriptionListener listener)
Sets new subscription listener to receive notifications about subscription.
|
boolean retrieveSubscription(SubscriptionVisitor visitor)
true if some subscription still remains in the provider
or false if all accumulated subscription were retrieved.void setSubscriptionListener(SubscriptionListener listener)
null to set empty subscription listener (no notifications).
NOTE: if there is accumulated subscription available, then specified listener will be notified by this method.
Copyright © 2002–2025 Devexperts LLC. All rights reserved.