public class BoxEventRequestObject extends BoxDefaultRequestObject
| Modifier and Type | Field and Description |
|---|---|
static int |
STREAM_POSITION_NOW
Stream position of "now",See http://developers.box.com/docs/#events.
|
static java.lang.String |
STREAM_TYPE_ALL |
static java.lang.String |
STREAM_TYPE_CHANGES |
static java.lang.String |
STREAM_TYPE_SYNC |
| Modifier and Type | Method and Description |
|---|---|
static BoxEventRequestObject |
getEventsRequestObject(long streamPosition)
Construct a new events object for fetching the event stream.
|
BoxEventRequestObject |
setLimit(int limit)
Set the limit for the number of events that will be returned.
|
BoxEventRequestObject |
setStreamType(java.lang.String streamType)
Set the stream_type.
|
getFromEntity, getJSONEntity, getRequestExtras, put, setPagepublic static final int STREAM_POSITION_NOW
public static final java.lang.String STREAM_TYPE_ALL
public static final java.lang.String STREAM_TYPE_CHANGES
public static final java.lang.String STREAM_TYPE_SYNC
public static BoxEventRequestObject getEventsRequestObject(long streamPosition)
streamPosition - Stream position. See http://developers.box.com/docs/#events for how to set this. To set this to "now", use
BoxEventRequestObject.STREAM_POSITION_NOW.Don't use STREAM_POSITION_NOW if you are requesting for enterprise
events(admin_logs),STREAM_POSITION_NOW is only supported for regular events.public BoxEventRequestObject setStreamType(java.lang.String streamType)
streamType - Use STREAM_TYPE_ALL (default), STREAM_TYPE_CHANGES or STREAM_TYPE_SYNC.public BoxEventRequestObject setLimit(int limit)
limit - Default is 100.