Base

class Proxy(service_name, name, context)[source]

Bases: object

Provides basic functionality for Hazelcast Proxies.

destroy()[source]

Destroys this proxy.

Returns

True if this proxy is destroyed successfully, False otherwise.

Return type

bool

blocking()[source]

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

class PartitionSpecificProxy(service_name, name, context)[source]

Bases: hazelcast.proxy.base.Proxy

Provides basic functionality for Partition Specific Proxies.

class TransactionalProxy(name, transaction, context)[source]

Bases: object

Provides an interface for all transactional distributed objects.

class ItemEventType[source]

Bases: object

Type of item events.

ADDED = 1

Fired when an item is added.

REMOVED = 2

Fired when an item is removed.

class EntryEventType[source]

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)[source]

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)[source]

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)[source]

Bases: object

Topic message.

property name

Name of the proxy that fired the event.

Type

str

property publish_time

UNIX time that the event is published as seconds.

Type

int

property member

Member that fired the event.

Type

hazelcast.core.MemberInfo

property message

The message sent to Topic.