The default target address to connect to Coherence gRPC server.
The default serialization format: 'json'
The default request timeout.
Return the number of active caches created by this session.
the number of active caches created by this session
Return a set
of cache names for those caches that are currently active.
a set
of cache names for those caches that are currently active
Returns an array of cache names for those caches that are currently active.
an array of cache names for those caches that are currently active
This is an alias for Session.options.address
.
the IPv4 host address and port in the format of [host]:[port]
Return the underlying gRPC
Channel used by this session.
the underlying gRPC
Channel used by this session
Return the gRPC ChannelCredentials used by this session.
the gRPC ChannelCredentials used by this session
Returns true
if the session is closed.
true
if the session is closed
This is a shortcut to invoke the options callOptions function.
the gRPC CallOptions that will be applied to each request made using this session
Close the Session.
Returns a NamedCacheClient for the specified cache name. This class maintains an internal cache (a Map) and if a NamedCacheClient exists in the cache it is returned. Else a new NamedCacheClient is created (then cached) and returned.
the cache name
the serialization format for keys and values stored within the cache
Returns a promise that will resolve to true
once the session has been closed.
a promise that will resolve to true
once the session has been closed
Session represents a logical connection to an endpoint. It also acts as a factory for creating caches.
This class also extends EventEmitter and emits the following events: