public class PullSubscription extends Subscription
| Constructor and Description |
|---|
PullSubscription()
Initializes a new instance of the PullSubscription class.
|
PullSubscription(boolean subscribeToAllFolders,
EventType eventType)
Initializes a new instance of the PullSubscription class.
|
PullSubscription(boolean subscribeToAllFolders,
java.util.List<EventType> eventTypes)
Initializes a new instance of the PullSubscription class.
|
PullSubscription(FolderId folderId)
Initializes a new instance of the PullSubscription class.
|
PullSubscription(FolderId folderId,
EventType eventType)
Initializes a new instance of the PullSubscription class.
|
PullSubscription(FolderId folderId,
EventType eventType,
int timeout)
Initializes a new instance of the PullSubscription class.
|
PullSubscription(FolderId folderId,
EventType eventType,
int timeout,
java.lang.String watermark)
Initializes a new instance of the PullSubscription class.
|
PullSubscription(FolderId folderId,
EventType eventType,
java.lang.String watermark)
Initializes a new instance of the PullSubscription class.
|
PullSubscription(StandardFolder standardFolder)
Initializes a new instance of the PullSubscription class.
|
PullSubscription(StandardFolder standardFolder,
EventType eventType)
Initializes a new instance of the PullSubscription class.
|
PullSubscription(StandardFolder standardFolder,
EventType eventType,
int timeout)
Initializes a new instance of the PullSubscription class.
|
PullSubscription(StandardFolder standardFolder,
EventType eventType,
int timeout,
java.lang.String watermark)
Initializes a new instance of the PullSubscription class.
|
PullSubscription(StandardFolder standardFolder,
EventType eventType,
java.lang.String watermark)
Initializes a new instance of the PullSubscription class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getTimeout()
Gets the duration, in minutes, that the subscription can remain idle without a GetEvents request from the client.
|
void |
setTimeout(int timeout)
Sets the duration, in minutes, that the subscription can remain idle without a GetEvents request from the client.
|
getEventTypes, getFolders, getWatermark, isSubscribeToAllFolders, setSubscribeToAllFolders, setWatermarkpublic PullSubscription()
public PullSubscription(boolean subscribeToAllFolders,
EventType eventType)
subscribeToAllFolders - the subscribe to all folderseventType - the event typepublic PullSubscription(boolean subscribeToAllFolders,
java.util.List<EventType> eventTypes)
subscribeToAllFolders - the subscribe to all folderseventTypes - the event typespublic PullSubscription(FolderId folderId)
folderId - the folder idpublic PullSubscription(FolderId folderId, EventType eventType)
folderId - the folder ideventType - the event typepublic PullSubscription(FolderId folderId, EventType eventType, int timeout)
folderId - the folder ideventType - the event typetimeout - the timeoutpublic PullSubscription(FolderId folderId, EventType eventType, java.lang.String watermark)
folderId - the folder ideventType - the event typewatermark - the watermarkpublic PullSubscription(FolderId folderId, EventType eventType, int timeout, java.lang.String watermark)
folderId - the folder ideventType - the event typetimeout - the timeoutwatermark - the watermarkpublic PullSubscription(StandardFolder standardFolder)
standardFolder - the standard folderpublic PullSubscription(StandardFolder standardFolder, EventType eventType)
standardFolder - the standard foldereventType - the event typepublic PullSubscription(StandardFolder standardFolder, EventType eventType, int timeout)
standardFolder - the standard foldereventType - the event typetimeout - the timeoutpublic PullSubscription(StandardFolder standardFolder, EventType eventType, java.lang.String watermark)
standardFolder - the standard foldereventType - the event typewatermark - the watermarkpublic PullSubscription(StandardFolder standardFolder, EventType eventType, int timeout, java.lang.String watermark)
standardFolder - the standard foldereventType - the event typetimeout - the timeoutwatermark - the watermarkpublic int getTimeout()
public void setTimeout(int timeout)
timeout - the new timeout