org.jclouds.rest.internal
Class RestContextImpl<S,A>
java.lang.Object
org.jclouds.internal.ContextImpl
org.jclouds.rest.internal.RestContextImpl<S,A>
- All Implemented Interfaces:
- Closeable, Context, Location, RestContext<S,A>
Deprecated. please use org.jclouds.ContextBuilder#buildApi() as
async interface will be removed in jclouds 1.7.
@Deprecated
public class RestContextImpl<S,A>
- extends ContextImpl
- implements RestContext<S,A>
|
Constructor Summary |
protected |
RestContextImpl(String name,
ProviderMetadata providerMetadata,
com.google.common.base.Supplier<Credentials> creds,
Utils utils,
Closer closer,
com.google.inject.Injector injector,
com.google.inject.TypeLiteral<S> syncApi,
com.google.inject.TypeLiteral<A> asyncApi)
Deprecated. |
| Methods inherited from class org.jclouds.internal.ContextImpl |
close, equals, getDescription, getId, getIdentity, getIso3166Codes, getMetadata, getName, getParent, getProviderMetadata, getScope, hashCode, isOpen, toString, utils |
RestContextImpl
@Inject
protected RestContextImpl(String name,
ProviderMetadata providerMetadata,
com.google.common.base.Supplier<Credentials> creds,
Utils utils,
Closer closer,
com.google.inject.Injector injector,
com.google.inject.TypeLiteral<S> syncApi,
com.google.inject.TypeLiteral<A> asyncApi)
- Deprecated.
getAsyncApi
public A getAsyncApi()
- Deprecated.
- Description copied from interface:
RestContext
- low-level api to the cloud. Threadsafe implementations will return a singleton.
- Specified by:
getAsyncApi in interface RestContext<S,A>
- Returns:
- a connection to the cloud where all methods return
Futures
getApi
public S getApi()
- Deprecated.
- Description copied from interface:
RestContext
- reflects a tuned connection to the cloud which calls
RestContext.getAsyncApi() with predetermined
timeouts.
- Specified by:
getApi in interface RestContext<S,A>
- Returns:
- a connection to the cloud where all methods block
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.