public class PushSubscription extends Subscription
| Constructor and Description |
|---|
PushSubscription()
Initializes a new instance of the PushSubscription class.
|
PushSubscription(boolean subscribeToAllFolders,
EventType eventType)
Initializes a new instance of the PushSubscription class.
|
PushSubscription(boolean subscribeToAllFolders,
java.util.List<EventType> eventTypes)
Initializes a new instance of the PushSubscription class.
|
PushSubscription(FolderId folderId,
EventType eventType,
java.lang.String url)
Initializes a new instance of the PushSubscription class.
|
PushSubscription(FolderId folderId,
EventType eventType,
java.lang.String url,
int statusFrequency)
Initializes a new instance of the PushSubscription class.
|
PushSubscription(FolderId folderId,
EventType eventType,
java.lang.String url,
int statusFrequency,
java.lang.String watermark)
Initializes a new instance of the PushSubscription class.
|
PushSubscription(FolderId folderId,
EventType eventType,
java.lang.String url,
java.lang.String watermark)
Initializes a new instance of the PushSubscription class.
|
PushSubscription(FolderId folderId,
java.lang.String url)
Initializes a new instance of the PushSubscription class.
|
PushSubscription(StandardFolder standardFolder,
EventType eventType,
java.lang.String url)
Initializes a new instance of the PushSubscription class.
|
PushSubscription(StandardFolder standardFolder,
EventType eventType,
java.lang.String url,
int statusFrequency)
Initializes a new instance of the PushSubscription class.
|
PushSubscription(StandardFolder standardFolder,
EventType eventType,
java.lang.String url,
int statusFrequency,
java.lang.String watermark)
Initializes a new instance of the PushSubscription class.
|
PushSubscription(StandardFolder standardFolder,
EventType eventType,
java.lang.String url,
java.lang.String watermark)
Initializes a new instance of the PushSubscription class.
|
PushSubscription(StandardFolder standardFolder,
java.lang.String url)
Initializes a new instance of the PushSubscription class.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCallerData()
Gets information about the caller.
|
int |
getStatusFrequency()
Gets the frequency, specified in minutes, at which notification messages will be sent to the client when no events have occurred.
|
java.lang.String |
getUrl()
Gets the location of the client Web service for push notifications.
|
void |
setCallerData(java.lang.String callerData)
Sets information about the caller.
|
void |
setStatusFrequency(int statusFrequency)
Sets the frequency, specified in minutes, at which notification messages will be sent to the client when no events have occurred.
|
void |
setUrl(java.lang.String url)
Sets the location of the client Web service for push notifications.
|
getEventTypes, getFolders, getWatermark, isSubscribeToAllFolders, setSubscribeToAllFolders, setWatermarkpublic PushSubscription()
public PushSubscription(boolean subscribeToAllFolders,
EventType eventType)
subscribeToAllFolders - the subscribe to all folderseventType - the event typepublic PushSubscription(boolean subscribeToAllFolders,
java.util.List<EventType> eventTypes)
subscribeToAllFolders - the subscribe to all folderseventTypes - the event typespublic PushSubscription(FolderId folderId, java.lang.String url)
folderId - the folder idurl - the urlpublic PushSubscription(FolderId folderId, EventType eventType, java.lang.String url)
folderId - the folder ideventType - the event typeurl - the urlpublic PushSubscription(FolderId folderId, EventType eventType, java.lang.String url, java.lang.String watermark)
folderId - the folder ideventType - the event typeurl - the urlwatermark - the watermarkpublic PushSubscription(FolderId folderId, EventType eventType, java.lang.String url, int statusFrequency)
folderId - the folder ideventType - the event typeurl - the urlstatusFrequency - the status frequencypublic PushSubscription(FolderId folderId, EventType eventType, java.lang.String url, int statusFrequency, java.lang.String watermark)
folderId - the folder ideventType - the event typeurl - the urlstatusFrequency - the status frequencywatermark - the watermarkpublic PushSubscription(StandardFolder standardFolder, java.lang.String url)
standardFolder - the standard folderurl - the urlpublic PushSubscription(StandardFolder standardFolder, EventType eventType, java.lang.String url)
standardFolder - the standard foldereventType - the event typeurl - the urlpublic PushSubscription(StandardFolder standardFolder, EventType eventType, java.lang.String url, java.lang.String watermark)
standardFolder - the standard foldereventType - the event typeurl - the urlwatermark - the watermarkpublic PushSubscription(StandardFolder standardFolder, EventType eventType, java.lang.String url, int statusFrequency)
standardFolder - the standard foldereventType - the event typeurl - the urlstatusFrequency - the status frequencypublic PushSubscription(StandardFolder standardFolder, EventType eventType, java.lang.String url, int statusFrequency, java.lang.String watermark)
standardFolder - the standard foldereventType - the event typeurl - the urlstatusFrequency - the status frequencywatermark - the watermarkpublic int getStatusFrequency()
public void setStatusFrequency(int statusFrequency)
statusFrequency - the new status frequencypublic java.lang.String getUrl()
public void setUrl(java.lang.String url)
url - the new urlpublic java.lang.String getCallerData()
public void setCallerData(java.lang.String callerData)
callerData - the new caller data