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 |
EventJournalInitialSubscriberState(long oldestSequence,
long newestSequence) |
void |
Exception(int errorCode,
String className,
String message,
StackTraceElement[] stacktrace,
int causeErrorCode,
String causeClassName) |
void |
IdBatch(long base,
long increment,
int batchSize) |
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,
int partitionStateVersion) |
void |
PartitionUuidList(List<Map.Entry<Integer,UUID>> partitionUuidList) |
void |
ReadResultSet(int readCount,
List<Data> items,
long[] itemSeqs) |
void |
ResultSegment(List<Data> results,
int nextTableIndexToReadFrom) |
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, @Since(value="1.5") int partitionStateVersion)
partitions - mappings from member address to list of partition id 's that member ownspartitionStateVersion - strictly increasing version of the partitions table.void 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,
@Since(value="1.5") @Nullable
long[] itemSeqs)
readCount - The number of items read from the ringbuffer. This can be different from
the size of the item array if a filter was applied when reading and some
items were skipped and are not in the returned array. This can also be
seen as the delta with which the user should increase his sequence
counter after consuming all of the returned items in the result set
to request the next set from the ringbuffer.items - The array of serialized items.itemSeqs - sequence IDs of returned ringbuffer items. This array can be null
if the cluster version is 3.8 or lower. If the cluster version is 3.9 or
higher then the array with sequence IDs will be sent. The array size is
equal to the size of the items array and the arrays have a one-to-one
mapping: the index of the sequence ID in the sequence array is equal
to the index of the item in the item array. These sequences can be used to
provide the user information to request a subset of the returned set if
the user has for some reason stopped processing working when processing
this returned set. If the ringbuffer is read without a filter then these
sequences are a contiguous range and the size of the arrays is equal to the
readCount.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 list@Since(value="1.4") void PartitionUuidList(List<Map.Entry<Integer,UUID>> partitionUuidList)
partitionUuidList - partitionId to UUID mapping list@Since(value="1.5") void ResultSegment(@ContainsNullable List<Data> results, int nextTableIndexToReadFrom)
results - The query results as an list of serialized projected entries that might have null entriesnextTableIndexToReadFrom - the index from which new items can be fetched@Since(value="1.5") void EventJournalInitialSubscriberState(long oldestSequence, long newestSequence)
oldestSequence - sequence ID of the oldest event in the event journalnewestSequence - sequence ID of the newest event in the event journalCopyright © 2018. All Rights Reserved.