public interface RecordProvider extends DataProvider, SubscriptionProvider
DataProvider
and SubscriptionProvider
.Modifier and Type | Field and Description |
---|---|
static RecordProvider |
VOID |
Modifier and Type | Method and Description |
---|---|
RecordMode |
getMode()
Returns record mode at which the records are provided
by
retrieve method. |
boolean |
retrieve(RecordSink sink)
Retrieves accumulated records into the specified record sink
while the sink
has capacity . |
boolean |
retrieveData(DataVisitor visitor)
Deprecated.
|
boolean |
retrieveSubscription(SubscriptionVisitor visitor)
Deprecated.
|
void |
setDataListener(DataListener listener)
Deprecated.
|
void |
setRecordListener(RecordListener listener)
Sets new record listener to receive notifications about available records.
|
void |
setSubscriptionListener(SubscriptionListener listener)
Deprecated.
|
static final RecordProvider VOID
RecordMode getMode()
retrieve
method.boolean retrieve(RecordSink sink)
has capacity
.
Returns true
if some records still remains in the provider
or false
if all accumulated records were retrieved.sink
- the sink.true
if some records still remains in the provider,
false
if all accumulated records were retrieved.void setRecordListener(RecordListener listener)
null
to set empty data listener (no notifications).
NOTE: if there are accumulated data available, then specified listener will be notified by this method.
listener
- the listener.boolean retrieveData(DataVisitor visitor)
retrieve(RecordSink)
true
if some data still remains in the provider
or false
if all accumulated data were retrieved.retrieveData
in interface DataProvider
boolean retrieveSubscription(SubscriptionVisitor visitor)
retrieve(RecordSink)
true
if some subscription still remains in the provider
or false
if all accumulated subscription were retrieved.retrieveSubscription
in interface SubscriptionProvider
void setDataListener(DataListener listener)
setRecordListener(RecordListener)
null
to set empty data listener (no notifications).
NOTE: if there is accumulated data available, then specified listener will be notified by this method.
setDataListener
in interface DataProvider
void setSubscriptionListener(SubscriptionListener listener)
setRecordListener(RecordListener)
null
to set empty subscription listener (no notifications).
NOTE: if there is accumulated subscription available, then specified listener will be notified by this method.
setSubscriptionListener
in interface SubscriptionProvider
Copyright © 2002–2025 Devexperts LLC. All rights reserved.