Class CoreStitchServiceClientImpl
- java.lang.Object
-
- com.mongodb.stitch.core.services.internal.CoreStitchServiceClientImpl
-
- All Implemented Interfaces:
CoreStitchServiceClient,StitchServiceBinder
public class CoreStitchServiceClientImpl extends Object implements CoreStitchServiceClient
-
-
Constructor Summary
Constructors Constructor Description CoreStitchServiceClientImpl(StitchAuthRequestClient requestClient, StitchServiceRoutes routes, String name, CodecRegistry codecRegistry)CoreStitchServiceClientImpl(StitchAuthRequestClient requestClient, StitchServiceRoutes routes, CodecRegistry codecRegistry)
-
Method Summary
Modifier and Type Method Description voidbind(StitchServiceBinder binder)Bind a given service to this service client.voidcallFunction(String name, List<?> args)<T> TcallFunction(String name, List<?> args, Class<T> resultClass)<T> TcallFunction(String name, List<?> args, Class<T> resultClass, CodecRegistry codecRegistry)voidcallFunction(String name, List<?> args, Long requestTimeout)<T> TcallFunction(String name, List<?> args, Long requestTimeout, Class<T> resultClass)<T> TcallFunction(String name, List<?> args, Long requestTimeout, Class<T> resultClass, CodecRegistry codecRegistry)<T> TcallFunction(String name, List<?> args, Long requestTimeout, Decoder<T> resultDecoder)<T> TcallFunction(String name, List<?> args, Decoder<T> resultDecoder)CodecRegistrygetCodecRegistry()StringgetName()voidonRebindEvent(RebindEvent rebindEvent)Notify the binder that a rebind event has occured.<T> Stream<T>streamFunction(String name, List<?> args, Decoder<T> decoder)CoreStitchServiceClientwithCodecRegistry(CodecRegistry codecRegistry)
-
-
-
Constructor Detail
-
CoreStitchServiceClientImpl
public CoreStitchServiceClientImpl(StitchAuthRequestClient requestClient, StitchServiceRoutes routes, CodecRegistry codecRegistry)
-
CoreStitchServiceClientImpl
public CoreStitchServiceClientImpl(StitchAuthRequestClient requestClient, StitchServiceRoutes routes, String name, CodecRegistry codecRegistry)
-
-
Method Detail
-
getName
@Nullable public String getName()
- Specified by:
getNamein interfaceCoreStitchServiceClient
-
callFunction
public void callFunction(String name, List<?> args)
- Specified by:
callFunctionin interfaceCoreStitchServiceClient
-
callFunction
public <T> T callFunction(String name, List<?> args, Decoder<T> resultDecoder)
- Specified by:
callFunctionin interfaceCoreStitchServiceClient
-
callFunction
public <T> T callFunction(String name, List<?> args, Class<T> resultClass)
- Specified by:
callFunctionin interfaceCoreStitchServiceClient
-
callFunction
public <T> T callFunction(String name, List<?> args, Class<T> resultClass, CodecRegistry codecRegistry)
- Specified by:
callFunctionin interfaceCoreStitchServiceClient
-
callFunction
public void callFunction(String name, List<?> args, @Nullable Long requestTimeout)
- Specified by:
callFunctionin interfaceCoreStitchServiceClient
-
callFunction
public <T> T callFunction(String name, List<?> args, @Nullable Long requestTimeout, Decoder<T> resultDecoder)
- Specified by:
callFunctionin interfaceCoreStitchServiceClient
-
callFunction
public <T> T callFunction(String name, List<?> args, @Nullable Long requestTimeout, Class<T> resultClass)
- Specified by:
callFunctionin interfaceCoreStitchServiceClient
-
callFunction
public <T> T callFunction(String name, List<?> args, @Nullable Long requestTimeout, Class<T> resultClass, CodecRegistry codecRegistry)
- Specified by:
callFunctionin interfaceCoreStitchServiceClient
-
streamFunction
public <T> Stream<T> streamFunction(String name, List<?> args, Decoder<T> decoder) throws InterruptedException
- Specified by:
streamFunctionin interfaceCoreStitchServiceClient- Throws:
InterruptedException
-
getCodecRegistry
public CodecRegistry getCodecRegistry()
- Specified by:
getCodecRegistryin interfaceCoreStitchServiceClient
-
withCodecRegistry
public CoreStitchServiceClient withCodecRegistry(CodecRegistry codecRegistry)
- Specified by:
withCodecRegistryin interfaceCoreStitchServiceClient
-
bind
public void bind(StitchServiceBinder binder)
Description copied from interface:CoreStitchServiceClientBind a given service to this service client.- Specified by:
bindin interfaceCoreStitchServiceClient- Parameters:
binder- the service binder that links the service to this client
-
onRebindEvent
public void onRebindEvent(RebindEvent rebindEvent)
Description copied from interface:StitchServiceBinderNotify the binder that a rebind event has occured. E.g., a change in authentication.- Specified by:
onRebindEventin interfaceStitchServiceBinder- Parameters:
rebindEvent- the rebind event that occurred
-
-