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

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

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.

Author:
Adrian Cole

Method Summary
 S getApi()
          reflects a tuned connection to the cloud which calls getAsyncApi() with predetermined timeouts.
 A getAsyncApi()
          low-level api to the cloud.
 
Methods inherited from interface org.jclouds.Context
close, credentialStore, getApiVersion, getBuildVersion, getCredentialStore, getEndpoint, getIdentity, getName, getProviderMetadata, getUtils, utils
 
Methods inherited from interface org.jclouds.domain.Location
getDescription, getId, getIso3166Codes, getMetadata, getParent, getScope
 

Method Detail

getAsyncApi

A getAsyncApi()
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()
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-2013 jclouds. All Rights Reserved.