org.jclouds.rest
Interface RestContext<S,A>

All Superinterfaces:
Closeable, Context, Location
All Known Implementing Classes:
RestContextImpl

Deprecated. please use org.jclouds.ContextBuilder#buildApi() as async interface will be removed in jclouds 1.7.

@Deprecated
public interface RestContext<S,A>
extends Context

Represents an authenticated context to the cloud.

Note

Please issue Context.close() when you are finished with this context in order to release resources.


Method Summary
 S getApi()
          Deprecated. reflects a tuned connection to the cloud which calls getAsyncApi() with predetermined timeouts.
 A getAsyncApi()
          Deprecated. please use org.jclouds.ContextBuilder#buildApi() as async interface will be removed in jclouds 1.7.
 
Methods inherited from interface org.jclouds.Context
close, getIdentity, getName, getProviderMetadata, isOpen, utils
 
Methods inherited from interface org.jclouds.domain.Location
getDescription, getId, getIso3166Codes, getMetadata, getParent, getScope
 

Method Detail

getAsyncApi

@Deprecated
A getAsyncApi()
Deprecated. please use org.jclouds.ContextBuilder#buildApi() as async interface will be removed in jclouds 1.7.

low-level api to the cloud. Threadsafe implementations will return a singleton.

Returns:
a connection to the cloud where all methods return Futures

getApi

S getApi()
Deprecated. 
reflects a tuned connection to the cloud which calls getAsyncApi() with predetermined timeouts.

Returns:
a connection to the cloud where all methods block


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.