import "github.com/hazelcast/hazelcast-go-client"
Package hazelcast provides methods for creating Hazelcast clients and client configurations.
NewConfig creates and returns a new config.
type Client interface { // Name returns the name of this hazelcast client. Name() string // GetMap returns the distributed map instance with the specified name. GetMap(name string) (core.Map, error) // GetList returns the distributed list instance with the specified name. GetList(name string) (core.List, error) // GetSet returns the distributed set instance with the specified name. GetSet(name string) (core.Set, error) // GetTopic returns the distributed topic instance with the specified name. GetTopic(name string) (core.Topic, error) // GetReliableTopic returns the distributed reliable topic instance with the specified name. GetReliableTopic(name string) (core.Topic, error) // GetMultiMap returns the distributed multi-map instance with the specified name. GetMultiMap(name string) (core.MultiMap, error) // GetReplicatedMap returns the replicated map instance with the specified name. GetReplicatedMap(name string) (core.ReplicatedMap, error) // GetQueue returns the distributed queue instance with the specified name. GetQueue(name string) (core.Queue, error) // GetRingbuffer returns the distributed ringbuffer instance with the specified name. GetRingbuffer(name string) (core.Ringbuffer, error) // GetPNCounter returns the distributed PN (Positive-Negative) CRDT counter instance with the specified name. GetPNCounter(name string) (core.PNCounter, error) // GetFlakeIDGenerator returns the distributed flakeIDGenerator instance with the specified name. GetFlakeIDGenerator(name string) (core.FlakeIDGenerator, error) // GetDistributedObject returns DistributedObject created by the service with the specified name. GetDistributedObject(serviceName string, name string) (core.DistributedObject, error) // Shutdown shuts down this Client. Shutdown() // Cluster returns the Cluster this instance is part of. // Cluster interface allows you to add listener for membership // events and learn more about the cluster this Hazelcast // instance is part of. Cluster() core.Cluster // LifecycleService returns the lifecycle service for this instance. LifecycleService service allows you // to listen for the lifecycle events. LifecycleService() core.LifecycleService }
Client is a Hazelcast client. Multiple Hazelcast clients can be created. Each Hazelcast client has its own socket, goroutines. Hazelcast client enables you to do all Hazelcast operations without being a member of the cluster. It connects to one of the cluster members and delegates all cluster wide operations to it. When the connected cluster member dies, client will automatically switch to another live member.
NewClient creates and returns a new Client. Hazelcast client enables you to do all Hazelcast operations without being a member of the cluster. It connects to one of the cluster members and delegates all cluster wide operations to it. When the connected cluster member dies, client will automatically switch to another live member.
NewClientWithConfig creates and returns a new Client with the given config. Hazelcast client enables you to do all Hazelcast operations without being a member of the cluster. It connects to one of the cluster members and delegates all cluster wide operations to it. When the connected cluster member dies, client will automatically switch to another live member.
Package hazelcast imports 3 packages (graph) and is imported by 30 packages. Updated 2019-02-13. Refresh now. Tools for package owners.