|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rbnb.api.RequestOptions
public class RequestOptions
Data request options class.
Objects of this class modify the handling of requests by changing how the server handles things. For example, the server can be told to wait for a specified period or until all of the data to arrive before responding.
DataRequest,
Serialized Form| Constructor Summary | |
|---|---|
RequestOptions()
Class constructor. |
|
| Method Summary | |
|---|---|
Object |
clone()
Clones this Serializable object. |
boolean |
getExtendStart()
Gets the extend start flag. |
long |
getMaxWait()
Gets the maximum wait period. |
void |
setExtendStart(boolean extendStartI)
Sets the extend start flag. |
void |
setMaxWait(long maxWaitI)
Sets the maximum wait period. |
String |
toString()
Gets a string representation. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RequestOptions()
| Method Detail |
|---|
public final boolean getExtendStart()
setExtendStart(boolean extendStartI)public final long getMaxWait()
This is the amount of time that the server will wait for "existing" data to arrive.
setMaxWait(long)public final void setExtendStart(boolean extendStartI)
If the flag is set and the request being worked on is for before, or at or before, the request specified time, then the start of request is extended from its specified time to the actual matching time. Effectively, this actually extends the duration so that the end time of the request is always equal to the request specified start time plus the request specified duration.
extendStartI - extend the start time?getExtendStart()public final void setMaxWait(long maxWaitI)
This is the amount of time that the server will wait for "existing" data to arrive.
A value of zero (0) means don't wait, simply return whatever data is available.
A positive value means wait for that amount of time or until all of the data is available. If the timeout period expires, return whatever data is available at that time.
A negative value means wait until all of the data is available.
maxWaitI - the maximum wait period in milliseconds.getMaxWait()public final String toString()
toString in class Objectpublic Object clone()
Serializable object.
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||