|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lightstreamer.ls_client.SimpleTableInfo
public class SimpleTableInfo
Contains the specification of a table to be subscribed to Lightstreamer Server.
Field Summary | |
---|---|
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 Summary | |
---|---|
SimpleTableInfo(java.lang.String group,
java.lang.String mode,
java.lang.String schema,
boolean snap)
Constructs a table specification with basic table attributes. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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.Method Detail |
---|
public java.lang.String getGroup()
public java.lang.String getMode()
public java.lang.String getSchema()
public boolean isSnapshot()
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |