public interface ClientMessageTemplate
| Modifier and Type | Method and Description |
|---|---|
Object |
addDistributedObjectListener(boolean localOnly) |
Object |
addMembershipListener(boolean localOnly) |
Object |
addPartitionLostListener(boolean localOnly) |
Object |
authentication(String username,
String password,
String uuid,
String ownerUuid,
boolean isOwnerConnection,
String clientType,
byte serializationVersion) |
Object |
authenticationCustom(Data credentials,
String uuid,
String ownerUuid,
boolean isOwnerConnection,
String clientType,
byte serializationVersion) |
void |
createProxy(String name,
String serviceName,
Address target) |
void |
destroyProxy(String name,
String serviceName) |
Object |
getDistributedObjects() |
Object |
getPartitions() |
void |
ping() |
void |
removeAllListeners() |
Object |
removeDistributedObjectListener(String registrationId) |
Object |
removePartitionLostListener(String registrationId) |
Object authentication(String username, String password, @Nullable String uuid, @Nullable String ownerUuid, boolean isOwnerConnection, String clientType, byte serializationVersion)
username - Name of the user for authentication.password - Password for the user.uuid - Unique string identifying the connected client uniquely. This string is generated by the owner member server
on initial connection. When the client connects to a non-owner member it sets this field on the request.ownerUuid - Unique string identifying the server member uniquely.isOwnerConnection - You must set this field to true while connecting to the owner member, otherwise set to false.clientType - The type of the client. E.g. JAVA, CPP, CSHARP, etc.serializationVersion - client side supported version to inform server sideObject authenticationCustom(Data credentials, @Nullable String uuid, @Nullable String ownerUuid, boolean isOwnerConnection, String clientType, byte serializationVersion)
credentials - Secret byte array for authentication.uuid - Unique string identifying the connected client uniquely. This string is generated by the owner member server
on initial connection. When the client connects to a non-owner member it sets this field on the request.ownerUuid - Unique string identifying the server member uniquely.isOwnerConnection - You must set this field to true while connecting to the owner member, otherwise set to false.clientType - The type of the client. E.g. JAVA, CPP, CSHARP, etc.serializationVersion - client side supported version to inform server sideObject addMembershipListener(boolean localOnly)
localOnly - if true only master node sends events, otherwise all registered nodes send all membership
changes.void createProxy(String name, String serviceName, Address target)
name - The distributed object name for which the proxy is being created for.serviceName - The name of the service. Possible service names are:
"hz:impl:listService"
"hz:impl:queueService"
"hz:impl:setService"
"hz:impl:atomicLongService"
"hz:impl:atomicReferenceService"
"hz:impl:countDownLatchService"
"hz:impl:idGeneratorService"
"hz:impl:semaphoreService"
"hz:impl:executorService"
"hz:impl:mapService"
"hz:impl:mapReduceService"
"hz:impl:multiMapService"
"hz:impl:quorumService"
"hz:impl:replicatedMapService"
"hz:impl:ringbufferService"
"hz:core:proxyService"
"hz:impl:reliableTopicService"
"hz:impl:topicService"
"hz:core:txManagerService"
"hz:impl:xaService"void destroyProxy(String name, String serviceName)
name - The distributed object name for which the proxy is being destroyed for.serviceName - The name of the service. Possible service names are:
"hz:impl:listService"
"hz:impl:queueService"
"hz:impl:setService"
"hz:impl:atomicLongService"
"hz:impl:atomicReferenceService"
"hz:impl:countDownLatchService"
"hz:impl:idGeneratorService"
"hz:impl:semaphoreService"
"hz:impl:executorService"
"hz:impl:mapService"
"hz:impl:mapReduceService"
"hz:impl:multiMapService"
"hz:impl:quorumService"
"hz:impl:replicatedMapService"
"hz:impl:ringbufferService"
"hz:core:proxyService"
"hz:impl:reliableTopicService"
"hz:impl:topicService"
"hz:core:txManagerService"
"hz:impl:xaService"Object getPartitions()
void removeAllListeners()
Object addPartitionLostListener(boolean localOnly)
localOnly - if true only node that has the partition sends the request, if false
sends all partition lost events.Object removePartitionLostListener(String registrationId)
registrationId - The id assigned during the listener registration.Object getDistributedObjects()
Object addDistributedObjectListener(boolean localOnly)
Object removeDistributedObjectListener(String registrationId)
registrationId - The id assigned during the registration.void ping()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.