Search in sources :

Example 1 with SSRetrievalOptions

use of com.ms.silverking.cloud.dht.serverside.SSRetrievalOptions in project SilverKing by Morgan-Stanley.

the class InternalRetrievalOptions method fromSSRetrievalOptions.

public static InternalRetrievalOptions fromSSRetrievalOptions(SSRetrievalOptions options) {
    if (options instanceof InternalRetrievalOptions) {
        return (InternalRetrievalOptions) options;
    } else {
        RetrievalOptions retrievalOptions;
        retrievalOptions = new RetrievalOptions(null, null, options.getRetrievalType(), WaitMode.GET, options.getVersionConstraint(), null, options.getVerifyIntegrity(), options.getReturnInvalidations(), null, false);
        return new InternalRetrievalOptions(retrievalOptions, options.getVerifyIntegrity());
    }
}
Also used : RetrievalOptions(com.ms.silverking.cloud.dht.RetrievalOptions) SSRetrievalOptions(com.ms.silverking.cloud.dht.serverside.SSRetrievalOptions)

Aggregations

RetrievalOptions (com.ms.silverking.cloud.dht.RetrievalOptions)1 SSRetrievalOptions (com.ms.silverking.cloud.dht.serverside.SSRetrievalOptions)1