com.thomsonreuters.ema.access.CosGuarantee Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ema Show documentation
Show all versions of ema Show documentation
Enterprise Message API (EMA) Java Edition
///*|-----------------------------------------------------------------------------
// *| This source code is provided under the Apache 2.0 license --
// *| and is provided AS IS with no warranty or guarantee of fit for purpose. --
// *| See the project's LICENSE.md for details. --
// *| Copyright Thomson Reuters 2015. All rights reserved. --
///*|-----------------------------------------------------------------------------
package com.thomsonreuters.ema.access;
/*
* CosGuarantee contains options related to the guarantee of content submitted over the tunnel stream.
*/
public interface CosGuarantee
{
public class CosGuaranteeType
{
public static final int NONE = 0;
public static final int PERSISTENT_QUEUE = 1;
}
/*
* Clears the CosGuarantee object
*/
public CosGuarantee clear();
/*
* Specifies guarantee type
*/
public CosGuarantee type(int type);
/*
* Specifies if messages are persisted locally
*/
public CosGuarantee persistLocally(boolean persistLocally);
/*
* Specifies where files containing persistent messages are stored
*/
public CosGuarantee persistenceFilePath(String filePath);
/*
* Return guarantee type
*/
public int type();
/*
* Return if message should persist locally
*/
public boolean persistedLocally();
/*
* Return file path where files containing persistent message may be stored
*/
public String persistenceFilePath();
}