public interface ResponseTemplate
| Modifier and Type | Method and Description |
|---|---|
void |
AllScheduledTasksHandlers(List<Map.Entry<Member,List<ScheduledTaskHandler>>> handlers) |
Object |
Authentication(byte status,
Address address,
String uuid,
String ownerUuid,
byte serializationVersion,
String serverHazelcastVersion,
List<Member> clientUnregisteredMembers) |
void |
Boolean(boolean response) |
void |
CacheKeyIteratorResult(int tableIndex,
List<Data> keys) |
void |
Data(Data response) |
void |
EntriesWithCursor(int tableIndex,
List<Map.Entry<Data,Data>> entries) |
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 |
ListDataMaybeNullElements(List<Data> response) |
void |
ListDistributedObject(List<DistributedObjectInfo> response) |
void |
ListEntry(List<Map.Entry<Data,Data>> response) |
void |
Long(long response) |
void |
NearCacheInvalidationMetaData(List<Map.Entry<String,List<Map.Entry<Integer,Long>>>> namePartitionSequenceList,
List<Map.Entry<Integer,UUID>> partitionUuidList) |
void |
Partitions(List<Map.Entry<Address,List<Integer>>> partitions) |
void |
PartitionUuidList(List<Map.Entry<Integer,UUID>> partitionUuidList) |
void |
ReadResultSet(int readCount,
List<Data> items) |
void |
ScheduledTaskStatistics(long lastIdleTimeNanos,
long totalIdleTimeNanos,
long totalRuns,
long totalRunTimeNanos) |
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 ListDataMaybeNullElements(@ContainsNullable List<Data> response)
response - The operation result as an array of serialized byte-array that might have null entries.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, @Since(value="1.3") String serverHazelcastVersion, @Since(value="1.3") @Nullable List<Member> clientUnregisteredMembers)
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 2serverHazelcastVersion - The hazelcast version of the memberclientUnregisteredMembers - The list of members at which the client has no resources. This may be due to the client
no connected to the cluster at all or it may be that the cleanup operation is executed at
the member and no resources of the particular client is left at the member. The client
can use this information to restore its needed resources at the member, e.g.
registers its listeners. The list will be empty if this is response to non-owner
connection request.void Partitions(List<Map.Entry<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 exceptionvoid ReadResultSet(int readCount,
List<Data> items)
readCount - Number of items in the response.items - The array of serialized items.void EntriesWithCursor(int tableIndex,
List<Map.Entry<Data,Data>> entries)
tableIndex - the last tableIndex processed,
it is used to act as a cursor to tell where should next batch read beginentries - list of entries@Since(value="1.4") void ScheduledTaskStatistics(long lastIdleTimeNanos, long totalIdleTimeNanos, long totalRuns, long totalRunTimeNanos)
@Since(value="1.4") void AllScheduledTasksHandlers(List<Map.Entry<Member,List<ScheduledTaskHandler>>> handlers)
@Since(value="1.4") void NearCacheInvalidationMetaData(List<Map.Entry<String,List<Map.Entry<Integer,Long>>>> namePartitionSequenceList, List<Map.Entry<Integer,UUID>> partitionUuidList)
namePartitionSequenceList - name to partition sequenceId mapping listpartitionUuidList - partitionId to UUID mapping listCopyright © 2017. All Rights Reserved.