public interface ResponseTemplate
| Modifier and Type | Method and Description |
|---|---|
Object |
Authentication(byte status,
Address address,
String uuid,
String ownerUuid,
byte serializationVersion) |
void |
Boolean(boolean response) |
void |
CacheKeyIteratorResult(int tableIndex,
List<Data> keys) |
void |
Data(Data response) |
void |
EntryView(SimpleEntryView<Data,Data> dataEntryView) |
void |
Exception(int errorCode,
String className,
String message,
StackTraceElement[] stacktrace,
int causeErrorCode,
String causeClassName) |
void |
Integer(int response) |
Object |
JobProcessInfo(List<JobPartitionState> jobPartitionStates,
int processRecords) |
void |
ListData(List<Data> list) |
void |
ListEntry(List<Map.Entry<Data,Data>> entrySet) |
void |
Long(long response) |
void |
Partitions(Map<Address,Set<Integer>> partitions) |
void |
ReadResultSet(int readCount,
List<Data> items) |
void |
SetData(Set<Data> set) |
void |
SetDistributedObject(Set<DistributedObjectInfo> infoCollection) |
void |
SetEntry(Set<Map.Entry<Data,Data>> entrySet) |
void |
String(String response) |
void |
Void() |
void Void()
void Boolean(boolean response)
response - True if operation is successful, false otherwise.void Integer(int response)
response - The operation result as an integer.void Long(long response)
response - The operation result as a long.void String(String response)
response - The operation result as a string.void Data(@Nullable Data response)
response - The operation result as a serialized byte-array.void ListData(List<Data> list)
list - The operation result as an array of serialized byte-array.void SetData(Set<Data> set)
set - The operation result as an array of serialized byte-array.void SetEntry(Set<Map.Entry<Data,Data>> entrySet)
entrySet - The operation result as an array of serialized key-value byte-arrays.void ListEntry(List<Map.Entry<Data,Data>> entrySet)
entrySet - The operation result as an array of serialized key-value byte-arrays.Object Authentication(byte status, @Nullable Address address, @Nullable String uuid, @Nullable String ownerUuid, byte serializationVersion)
status - Authentication result as 0:AUTHENTICATED, 1:CREDENTIALS_FAILED, 2:SERIALIZATION_VERSION_MISMATCHaddress - The address of the member server. This value will be null if status is not 0uuid - 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.
This value will be null if status is not 0ownerUuid - Unique string identifying the server member uniquely.This value will be null if status is not 0serializationVersion - server side supported serialization version.
This value should be used for setting serialization version if status is 2void Partitions(Map<Address,Set<Integer>> partitions)
partitions - An array of member server address to partitions mapping.void SetDistributedObject(Set<DistributedObjectInfo> infoCollection)
infoCollection - An array of DistributedObjectInfo (service name and object name).void EntryView(@Nullable SimpleEntryView<Data,Data> dataEntryView)
dataEntryView - Response as an EntryView Data type.Object JobProcessInfo(List<JobPartitionState> jobPartitionStates, int processRecords)
jobPartitionStates - The state of the job. See Job Partition State Data Type description for details.processRecords - Number of processed records.void CacheKeyIteratorResult(int tableIndex,
List<Data> keys)
tableIndex - the last tableIndex processedkeys - list of keysvoid Exception(int errorCode,
String className,
@Nullable
String message,
StackTraceElement[] stacktrace,
int causeErrorCode,
@Nullable
String causeClassName)
errorCode - error code of this exceptionclassName - java class name of exceptionmessage - details of exceptionstacktrace - array of stack tracecauseErrorCode - error code of cause of this exception, if there is no cause -1causeClassName - java class name of the cause of this exceptionCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.