microsoft.exchange.webservices.data.StreamingSubscription Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of exchange-ws-api Show documentation
Show all versions of exchange-ws-api Show documentation
The source came from http://archive.msdn.microsoft.com/ewsjavaapi
Support for Maven has been added.
The newest version!
/**************************************************************************
* copyright file="StreamingSubscription.java" company="Microsoft"
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* Defines the StreamingSubscription class.
**************************************************************************/
package microsoft.exchange.webservices.data;
/**
* Represents a streaming subscription.
*/
public final class StreamingSubscription extends SubscriptionBase{
/**
* Initializes a new instance of the
* class.
* @param service The service.
*/
private ExchangeService service;
protected StreamingSubscription(ExchangeService service)
throws Exception {
super(service);
}
/**
* Unsubscribes from the streaming subscription.
*/
public void unsubscribe() throws Exception {
this.getService().unsubscribe(this.getId());
}
/**
* Gets the service used to create this subscription.
*/
public ExchangeService getService() {
return super.getService();
}
/**
* Gets a value indicating whether this subscription uses watermarks.
*/
@Override
protected boolean getUsesWatermark() {
return false;
}
}