Base

class Proxy(service_name, name, context)

Bases: object

Provides basic functionality for Hazelcast Proxies.

destroy()

Destroys this proxy.

Returns

True if this proxy is destroyed successfully, False otherwise.

Return type

bool

blocking()

Returns a version of this proxy with only blocking method calls.

class PartitionSpecificProxy(service_name, name, context)

Bases: hazelcast.proxy.base.Proxy

Provides basic functionality for Partition Specific Proxies.

class TransactionalProxy(name, transaction, context)

Bases: object

Provides an interface for all transactional distributed objects.

class ItemEventType

Bases: object

Type of item events.

ADDED = 1

Fired when an item is added.

REMOVED = 2

Fired when an item is removed.

class EntryEventType

Bases: object

Type of entry event.

ADDED = 1

Fired if an entry is added.

REMOVED = 2

Fired if an entry is removed.

UPDATED = 4

Fired if an entry is updated.

EVICTED = 8

Fired if an entry is evicted.

EXPIRED = 16

Fired if an entry is expired.

EVICT_ALL = 32

Fired if all entries are evicted.

CLEAR_ALL = 64

Fired if all entries are cleared.

MERGED = 128

Fired if an entry is merged after a network partition.

INVALIDATION = 256

Fired if an entry is invalidated.

LOADED = 512

Fired if an entry is loaded.

class ItemEvent(name, item_data, event_type, member, to_object)

Bases: object

Map Item event.

name

Name of the proxy that fired the event.

Type

str

event_type

Type of the event.

Type

ItemEventType

member

Member that fired the event.

Type

hazelcast.core.MemberInfo

property item

The item related to the event.

class EntryEvent(to_object, key, value, old_value, merging_value, event_type, uuid, number_of_affected_entries)

Bases: object

Map Entry event.

event_type

Type of the event.

Type

EntryEventType

uuid

UUID of the member that fired the event.

Type

uuid.UUID

number_of_affected_entries

Number of affected entries by this event.

Type

int

property key

The key of this entry event.

property old_value

The old value of the entry event.

property value

The value of the entry event.

property merging_value

The incoming merging value of the entry event.

class TopicMessage(name, message_data, publish_time, member, to_object)

Bases: object

Topic message.

name

Name of the proxy that fired the event.

Type

str

publish_time

UNIX time that the event is published as seconds.

Type

int

member

Member that fired the event.

Type

hazelcast.core.MemberInfo

property message

The message sent to Topic.

get_entry_listener_flags(**kwargs)