public class SimpleTableInfo
extends java.lang.Object
implements java.lang.Cloneable
LSClient.inquireMpn(com.lightstreamer.ls_client.mpn.MpnKey)
or LSClient.inquireMpn(com.lightstreamer.ls_client.mpn.MpnSubscriptionStatus)
, some of
its fields may not be restored to the value they had when the it has been originally submitted,
like requestedBufferSize
and requestedMaxFrequency
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMMAND
String constant for COMMAND subscription mode.
|
static java.lang.String |
DISTINCT
String constant for DISTINCT subscription mode.
|
static java.lang.String |
MERGE
String constant for MERGE subscription mode.
|
static java.lang.String |
RAW
String constant for RAW subscription mode.
|
Constructor and Description |
---|
SimpleTableInfo(java.lang.String group,
java.lang.String mode,
java.lang.String schema,
boolean snap)
Constructs a table specification with basic table attributes.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
java.lang.String |
getAdapterSet()
When SimpleTableInfo is returned by a
LSClient.inquireMpn(com.lightstreamer.ls_client.mpn.MpnKey)
or LSClient.inquireMpn(com.lightstreamer.ls_client.mpn.MpnSubscriptionStatus) ,
recalls the name of the Adapter Set used to activate the MPN subscription
(MPN subscriptions are persistent, thus the original session may have used a
different Adapter Set than the current one). |
int |
getBufferSize()
Recalls the requested size for the Server ItemEventBuffer for all
the items in the table.
|
java.lang.String |
getDataAdapter()
Recalls the name of the Data Adapter (within the Adapter Set used
by the current session) that supplies all the items in the Table.
|
int |
getDistinctSnapshotLength()
Recalls the requested length for the snapshot to be received for all
the items in the table, provided that their subscription mode is
DISTINCT.
|
int |
getEnd()
Recalls the position of the last item in the Group to be considered.
|
java.lang.String |
getGroup()
Recalls the name of the Group of items contained in this table.
|
java.lang.String |
getMode()
Recalls the subscription mode for the items contained in this table.
|
double |
getRequestedMaxFrequency()
Recalls the requested maximum update frequency for all the items
in the table.
|
java.lang.String |
getSchema()
Recalls the name of the Schema of fields used in this table.
|
java.lang.String |
getSelector()
Recalls the selector to be applied by the Server to the updates.
|
int |
getStart()
Recalls the position of the first item in the Group to be considered.
|
boolean |
isSnapshot()
Recalls whether or not the snapshot is being asked for the items contained in this table.
|
boolean |
isUnfilteredDispatching()
Recalls the filtering behavior for all the items in the table.
|
void |
requestUnfilteredDispatching()
Requests that events for the items in the table are dispatched
in an unfiltered way.
|
void |
setDataAdapter(java.lang.String dataAdapter)
Specifies the name of the Data Adapter (within the Adapter Set used
by the current session) that supplies all the items in the Group.
|
void |
setRange(int start,
int end)
Specifies a subrange of the specified Group of items to be requested.
|
void |
setRequestedBufferSize(int bufferSize)
Sets the requested size for the Server ItemEventBuffer for all the items
in the table.
|
void |
setRequestedDistinctSnapshotLength(int snapshotLength)
Sets the requested length for the snapshot to be received for all
the items in the table.
|
void |
setRequestedMaxFrequency(double maxFrequency)
Sets the maximum update frequency for all the items in the table.
|
void |
setSelector(java.lang.String selector)
Specifies a selector to be applied by the Server to the updates
pertaining to all the Items in the Group.
|
public static final java.lang.String MERGE
public static final java.lang.String DISTINCT
public static final java.lang.String RAW
public static final java.lang.String COMMAND
public SimpleTableInfo(java.lang.String group, java.lang.String mode, java.lang.String schema, boolean snap) throws SubscrException
group
- Name of the Group of items in the table.mode
- Subscription mode for all items in the table.
It should be equal to one of the constants defined in the class.schema
- Name of the Schema for all items in the table.snap
- If true, requires the snapshot for all items in the table.
The snapshot can be requested only for MERGE, DISTINCT and COMMAND
Items mode.SubscrException
- Thrown if the snapshot request is not compatible
with the supplied subscription mode.snapshot
flag must be left to
false
.public java.lang.String getGroup()
public java.lang.String getMode()
public java.lang.String getSchema()
public boolean isSnapshot()
public java.lang.String getAdapterSet()
LSClient.inquireMpn(com.lightstreamer.ls_client.mpn.MpnKey)
or LSClient.inquireMpn(com.lightstreamer.ls_client.mpn.MpnSubscriptionStatus)
,
recalls the name of the Adapter Set used to activate the MPN subscription
(MPN subscriptions are persistent, thus the original session may have used a
different Adapter Set than the current one).
ConnectionInfo.adapter
public void setDataAdapter(java.lang.String dataAdapter)
dataAdapter
- the name of the Data Adapter. A null value is
equivalent to the "DEFAULT" name.ConnectionInfo.adapter
public java.lang.String getDataAdapter()
public void setSelector(java.lang.String selector)
selector
- name of a Selector. It will be interpreted
by the Metadata Adapter.public java.lang.String getSelector()
public void setRange(int start, int end)
start
- 1-based Index of the first item in the Group.end
- 1-based Index of the last item in the Group.public int getStart()
public int getEnd()
public void setRequestedBufferSize(int bufferSize) throws SubscrException
bufferSize
- the size requested for the ItemEventBuffers;
it should be greater than 0, or 0 to mean an unlimited buffer.SubscrException
- Thrown if buffer size setting is not compatible
with the supplied subscription mode.public int getBufferSize()
setRequestedBufferSize(int)
public void setRequestedMaxFrequency(double maxFrequency) throws SubscrException
maxFrequency
- the frequency requested for the items; it should
be greater than 0.SubscrException
- Thrown if maximum frequency setting is not
compatible with the supplied subscription mode.public double getRequestedMaxFrequency()
setRequestedMaxFrequency(double)
public void requestUnfilteredDispatching() throws SubscrException
SubscrException
- Thrown if unfiltered dispatching is not
compatible with the supplied subscription mode.public boolean isUnfilteredDispatching()
public void setRequestedDistinctSnapshotLength(int snapshotLength) throws SubscrException
snapshotLength
- the length requested for the snapshot; it should
be greater than 0.SubscrException
- Thrown if snapshot length setting is not
compatible with the supplied parameters.public int getDistinctSnapshotLength()
public java.lang.Object clone()
clone
in class java.lang.Object