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 void
bind(StitchServiceBinder binder)
Bind a given service to this service client.void
callFunction(String name, List<?> args)
<T> T
callFunction(String name, List<?> args, Class<T> resultClass)
<T> T
callFunction(String name, List<?> args, Class<T> resultClass, CodecRegistry codecRegistry)
void
callFunction(String name, List<?> args, Long requestTimeout)
<T> T
callFunction(String name, List<?> args, Long requestTimeout, Class<T> resultClass)
<T> T
callFunction(String name, List<?> args, Long requestTimeout, Class<T> resultClass, CodecRegistry codecRegistry)
<T> T
callFunction(String name, List<?> args, Long requestTimeout, Decoder<T> resultDecoder)
<T> T
callFunction(String name, List<?> args, Decoder<T> resultDecoder)
CodecRegistry
getCodecRegistry()
String
getName()
void
onRebindEvent(RebindEvent rebindEvent)
Notify the binder that a rebind event has occured.<T> Stream<T>
streamFunction(String name, List<?> args, Decoder<T> decoder)
CoreStitchServiceClient
withCodecRegistry(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:
getName
in interfaceCoreStitchServiceClient
-
callFunction
public void callFunction(String name, List<?> args)
- Specified by:
callFunction
in interfaceCoreStitchServiceClient
-
callFunction
public <T> T callFunction(String name, List<?> args, Decoder<T> resultDecoder)
- Specified by:
callFunction
in interfaceCoreStitchServiceClient
-
callFunction
public <T> T callFunction(String name, List<?> args, Class<T> resultClass)
- Specified by:
callFunction
in interfaceCoreStitchServiceClient
-
callFunction
public <T> T callFunction(String name, List<?> args, Class<T> resultClass, CodecRegistry codecRegistry)
- Specified by:
callFunction
in interfaceCoreStitchServiceClient
-
callFunction
public void callFunction(String name, List<?> args, @Nullable Long requestTimeout)
- Specified by:
callFunction
in interfaceCoreStitchServiceClient
-
callFunction
public <T> T callFunction(String name, List<?> args, @Nullable Long requestTimeout, Decoder<T> resultDecoder)
- Specified by:
callFunction
in interfaceCoreStitchServiceClient
-
callFunction
public <T> T callFunction(String name, List<?> args, @Nullable Long requestTimeout, Class<T> resultClass)
- Specified by:
callFunction
in interfaceCoreStitchServiceClient
-
callFunction
public <T> T callFunction(String name, List<?> args, @Nullable Long requestTimeout, Class<T> resultClass, CodecRegistry codecRegistry)
- Specified by:
callFunction
in interfaceCoreStitchServiceClient
-
streamFunction
public <T> Stream<T> streamFunction(String name, List<?> args, Decoder<T> decoder) throws InterruptedException
- Specified by:
streamFunction
in interfaceCoreStitchServiceClient
- Throws:
InterruptedException
-
getCodecRegistry
public CodecRegistry getCodecRegistry()
- Specified by:
getCodecRegistry
in interfaceCoreStitchServiceClient
-
withCodecRegistry
public CoreStitchServiceClient withCodecRegistry(CodecRegistry codecRegistry)
- Specified by:
withCodecRegistry
in interfaceCoreStitchServiceClient
-
bind
public void bind(StitchServiceBinder binder)
Description copied from interface:CoreStitchServiceClient
Bind a given service to this service client.- Specified by:
bind
in interfaceCoreStitchServiceClient
- Parameters:
binder
- the service binder that links the service to this client
-
onRebindEvent
public void onRebindEvent(RebindEvent rebindEvent)
Description copied from interface:StitchServiceBinder
Notify the binder that a rebind event has occured. E.g., a change in authentication.- Specified by:
onRebindEvent
in interfaceStitchServiceBinder
- Parameters:
rebindEvent
- the rebind event that occurred
-
-