hazelcast-go-client: github.com/hazelcast/hazelcast-go-client Index | Files | Directories

package hazelcast

import "github.com/hazelcast/hazelcast-go-client"

Package hazelcast provides methods for creating Hazelcast clients and client configurations.

Index

Package Files

hazelcast.go

func NewConfig Uses

func NewConfig() *config.Config

NewConfig creates and returns a new config.

type Client Uses

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.

func NewClient Uses

func NewClient() (Client, error)

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.

func NewClientWithConfig Uses

func NewClientWithConfig(config *config.Config) (Client, error)

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.

Directories

PathSynopsis
configPackage config contains all the configuration to start a Hazelcast instance.
config/property
corePackage core provides core API interfaces/classes.
core/aggregatorPackage aggregator is a utility package to create basic aggregators.
core/predicatePackage predicate is a utility package to create predicate.
core/projection
internal
internal/aggregation
internal/discovery
internal/flakeid
internal/murmur
internal/precond
internal/predicate
internal/projection
internal/proto
internal/proto/bufutil
internal/reliabletopic
internal/serialization
internal/serialization/bufferutil
internal/serialization/classdef
internal/util/colutil
internal/util/iputil
internal/util/timeutil
internal/util/versionutil
rc
sample/flakeidgen
sample/hzclouddiscovery
sample/list
sample/loadbalancer
sample/multimap
sample/orgwebsite
sample/pncounter
sample/queue
sample/reliabletopic
sample/replicatedmap
sample/ringbuffer
sample/set
sample/statistics
sample/topic
security
serializationPackage serialization serializes user objects to Data and back to Object.
serialization/classdefPackage classdef is used to build and register class definitions manually.
serialization/internal
serialization/internal/bufferutil
serialization/internal/classdef
serialization/internal/compatibility
serialization/spi
test
test/soak

Package hazelcast imports 3 packages (graph) and is imported by 30 packages. Updated 2018-12-16. Refresh now. Tools for package owners.