Uses of Interface
com.hazelcast.core.HazelcastInstance
Package
Description
Contains classes/interfaces related to Client
Provides core API interfaces/classes.
-
Uses of HazelcastInstance in com.hazelcast.client
Modifier and TypeMethodDescriptionstatic HazelcastInstance
HazelcastClient.getHazelcastClientByName
(String instanceName) Returns an existing HazelcastClient with instanceName.static HazelcastInstance
HazelcastClient.getOrCreateHazelcastClient()
Gets or creates a new HazelcastInstance (a new client in a cluster) with the default XML configuration looked up in: System property: Hazelcast will first check if "hazelcast.client.config" system property is set to a file or aclasspath:...
path.static HazelcastInstance
HazelcastClient.getOrCreateHazelcastClient
(ClientConfig config) Gets or creates a new HazelcastInstance (a new client in a cluster) with a certain name.static HazelcastInstance
HazelcastClient.newHazelcastClient()
Creates a new HazelcastInstance (a new client in a cluster).static HazelcastInstance
HazelcastClient.newHazelcastClient
(ClientConfig config) Creates a new HazelcastInstance (a new client in a cluster).static HazelcastInstance
HazelcastClient.newHazelcastFailoverClient()
Creates a client with cluster switch capability.static HazelcastInstance
HazelcastClient.newHazelcastFailoverClient
(ClientFailoverConfig clientFailoverConfig) Creates a client with cluster switch capability.Modifier and TypeMethodDescriptionstatic Collection<HazelcastInstance>
HazelcastClient.getAllHazelcastClients()
Gets an immutable collection of all client HazelcastInstances created in this JVM.Modifier and TypeMethodDescriptionvoid
ClientOutOfMemoryHandler.onOutOfMemory
(OutOfMemoryError oome, HazelcastInstance[] hazelcastInstances) static void
HazelcastClient.shutdown
(HazelcastInstance instance) Shutdown the provided client and remove it from the managed list -
Uses of HazelcastInstance in com.hazelcast.core
Modifier and TypeMethodDescriptionabstract void
OutOfMemoryHandler.onOutOfMemory
(OutOfMemoryError oome, HazelcastInstance[] hazelcastInstances) When anOutOfMemoryError
is caught by Hazelcast threads, this method is called for ALLHazelcastInstance
s knows by current JVM (actually ClassLoader).void
HazelcastInstanceAware.setHazelcastInstance
(HazelcastInstance hazelcastInstance) Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.