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> response) |
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> response) |
void |
ListDistributedObject(List<DistributedObjectInfo> response) |
void |
ListEntry(List<Map.Entry<Data,Data>> response) |
void |
Long(long response) |
void |
Partitions(Map<Address,List<Integer>> partitions) |
void |
ReadResultSet(int readCount,
List<Data> items) |
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> response)
response
- The operation result as an array of serialized byte-array.void ListEntry(List<Map.Entry<Data,Data>> response)
response
- 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,List<Integer>> partitions)
partitions
- mappings from member address to list of partition id 's that member ownsvoid ListDistributedObject(List<DistributedObjectInfo> response)
response
- An list of DistributedObjectInfo (service name and object name).void EntryView(@Nullable SimpleEntryView<Data,Data> response)
response
- 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 © 2016 Hazelcast, Inc.. All Rights Reserved.