All Downloads are FREE. Search and download functionalities are using the official Maven repository.

microsoft.exchange.webservices.data.StreamingSubscription Maven / Gradle / Ivy

Go to download

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;
	}

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy