def encodeRequest(cls, name, value):
     clientMessage = ClientMessage()
     clientMessage.setOperationType(ListAddCodec.REQUEST_TYPE)
     clientMessage.setRetryable(ListAddCodec.RETRYABLE)
     clientMessage.set(encode.encodestring(name))
     clientMessage.set(value)
     clientMessage.updateSize()
     return clientMessage
 def EntryProcessor(self,   key, entryProcessor, arguments, completionId):
     msg=cachecodec.CacheEntryProcessorCodec.encodeRequest( encode.encodestring(self.title), key, entryProcessor, arguments, encode.encodeint32(completionId))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return cachecodec.CacheEntryProcessorCodec.decodeResponse(msg2).response
 def Destroy(self,  ):
     msg=cachecodec.CacheDestroyCodec.encodeRequest( encode.encodestring(self.title))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return cachecodec.CacheDestroyCodec.decodeResponse(msg2).response
 def RemoveInvalidationListener(self,   registrationId):
     msg=cachecodec.CacheRemoveInvalidationListenerCodec.encodeRequest( encode.encodestring(self.title), encode.encodestring(registrationId))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return cachecodec.CacheRemoveInvalidationListenerCodec.decodeResponse(msg2).response
 def RemoveAll(self,   completionId):
     msg=cachecodec.CacheRemoveAllCodec.encodeRequest( encode.encodestring(self.title), encode.encodeint32(completionId))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return cachecodec.CacheRemoveAllCodec.decodeResponse(msg2)
 def ManagementConfig(self,   isStat, enabled, hostname, port):
     msg=cachecodec.CacheManagementConfigCodec.encodeRequest( encode.encodestring(self.title), encode.encodeboolean(isStat), encode.encodeboolean(enabled), encode.encodestring(hostname), encode.encodeint32(port))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return cachecodec.CacheManagementConfigCodec.decodeResponse(msg2).response
 def LoadGivenKeys(self,   keys, replaceExistingValues):
     msg=mapcodec.MapLoadGivenKeysCodec.encodeRequest( encode.encodestring(self.title), keys, encode.encodeboolean(replaceExistingValues))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return mapcodec.MapLoadGivenKeysCodec.decodeResponse(msg2)
 def GetAll(self,  ):
     msg=setcodec.SetGetAllCodec.encodeRequest( encode.encodestring(self.title))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return setcodec.SetGetAllCodec.decodeResponse(msg2).list
 def Iterate(self,   partitionId, tableIndex, batch):
     msg=cachecodec.CacheIterateCodec.encodeRequest( encode.encodestring(self.title), encode.encodeint32(partitionId), encode.encodeint32(tableIndex), encode.encodeint32(batch))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return cachecodec.CacheIterateCodec.decodeResponse(msg2).response
 def DrainToMaxSize(self,   maxSize):
     msg=queuecodec.QueueDrainToMaxSizeCodec.encodeRequest( encode.encodestring(self.title), encode.encodeint32(maxSize))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return queuecodec.QueueDrainToMaxSizeCodec.decodeResponse(msg2)
 def Contains(self,   value):
     msg=queuecodec.QueueContainsCodec.encodeRequest( encode.encodestring(self.title), value)
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return queuecodec.QueueContainsCodec.decodeResponse(msg2).response
 def CompareAndRemoveAll(self,   dataList):
     msg=queuecodec.QueueCompareAndRemoveAllCodec.encodeRequest( encode.encodestring(self.title), dataList)
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return queuecodec.QueueCompareAndRemoveAllCodec.decodeResponse(msg2).response
 def Poll(self,   timeoutMillis):
     msg=queuecodec.QueuePollCodec.encodeRequest( encode.encodestring(self.title),encode.encodeint64(timeoutMillis))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return queuecodec.QueuePollCodec.decodeResponse(msg2).response
 def ContainsAll(self,   valueSet):
     msg=listcodec.ListContainsAllCodec.encodeRequest( encode.encodestring(self.title), valueSet)
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg)
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return listcodec.ListContainsAllCodec.decodeResponse(msg2).response
 def AddWithIndex(self,   index, value):
     msg=listcodec.ListAddWithIndexCodec.encodeRequest( encode.encodestring(self.title), encode.encodeint32(index), value)
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg)
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return listcodec.ListAddWithIndexCodec.decodeResponse(msg2)
 def GetAndReplace(self,   key, value, expiryPolicy, completionId):
     msg=cachecodec.CacheGetAndReplaceCodec.encodeRequest( encode.encodestring(self.title), key, value, expiryPolicy, encode.encodeint32(completionId))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return cachecodec.CacheGetAndReplaceCodec.decodeResponse(msg2).response
 def ListenerRegistration(self,   listenerConfig, register, hostname, port):
     msg=cachecodec.CacheListenerRegistrationCodec.encodeRequest( encode.encodestring(self.title), listenerConfig, encode.encodeboolean(register), encode.encodestring(hostname), encode.encodeint32(port))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return cachecodec.CacheListenerRegistrationCodec.decodeResponse(msg2)
 def ExecuteOnAllKeys(self,   entryProcessor):
     msg=mapcodec.MapExecuteOnAllKeysCodec.encodeRequest( encode.encodestring(self.title), entryProcessor)
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return mapcodec.MapExecuteOnAllKeysCodec.decodeResponse(msg2).entrySet
 def LoadAll(self,   keys, replaceExistingValues):
     msg=cachecodec.CacheLoadAllCodec.encodeRequest( encode.encodestring(self.title), keys, encode.encodeboolean(replaceExistingValues))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return cachecodec.CacheLoadAllCodec.decodeResponse(msg2)
 def GetAll(self,   keys, expiryPolicy):
     msg=cachecodec.CacheGetAllCodec.encodeRequest( encode.encodestring(self.title), keys, expiryPolicy)
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.receivePackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return cachecodec.CacheGetAllCodec.decodeResponse(msg2).entrySet
 def Sub(self,   fromm, to):
     msg=listcodec.ListSubCodec.encodeRequest(encode.encodestring(self.title), fromm, to)
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg)
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return listcodec.ListSubCodec.decodeResponse(msg2).list
 def ValuesWithPredicate(self,   predicate):
     msg=mapcodec.MapValuesWithPredicateCodec.encodeRequest( encode.encodestring(self.title), predicate)
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return mapcodec.MapValuesWithPredicateCodec.decodeResponse(msg2).list
 def Clear(self,  ):
     msg=mapcodec.MapClearCodec.encodeRequest( encode.encodestring(self.title))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return mapcodec.MapClearCodec.decodeResponse(msg2)
 def AddIndex(self,   attribute, ordered):
     msg=mapcodec.MapAddIndexCodec.encodeRequest( encode.encodestring(self.title), encode.encodestring(attribute), encode.encodeboolean(ordered))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return mapcodec.MapAddIndexCodec.decodeResponse(msg2)
 def Unlock(self,   key, threadId):
     msg=mapcodec.MapUnlockCodec.encodeRequest( encode.encodestring(self.title), key, encode.encodeint64(threadId))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return mapcodec.MapUnlockCodec.decodeResponse(msg2)
 def SubmitToKey(self,   entryProcessor, key):
     msg=mapcodec.MapSubmitToKeyCodec.encodeRequest( encode.encodestring(self.title), entryProcessor, key)
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return mapcodec.MapSubmitToKeyCodec.decodeResponse(msg2).response
 def RemovePartitionLostListener(self,   registrationId):
     msg=mapcodec.MapRemovePartitionLostListenerCodec.encodeRequest( encode.encodestring(self.title), encode.encodestring(registrationId))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return mapcodec.MapRemovePartitionLostListenerCodec.decodeResponse(msg2).response
 def AddPartitionLostListener(self,   eventhandler):
     msg=mapcodec.MapAddPartitionLostListenerCodec.encodeRequest( encode.encodestring(self.title))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     self.connection.eventregistry[correlationid]=mapcodec.MapAddPartitionLostListenerCodec.EventHandler(eventhandler)
     return mapcodec.MapAddPartitionLostListenerCodec.decodeResponse(msg2).response
 def AddEntryListenerWithPredicate(self,   predicate, includeValue, eventhandler):
     msg=mapcodec.MapAddEntryListenerWithPredicateCodec.encodeRequest( encode.encodestring(self.title), predicate, encode.encodeboolean(includeValue))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     self.connection.eventregistry[correlationid]=mapcodec.MapAddEntryListenerWithPredicateCodec.EventHandler(eventhandler)
     return mapcodec.MapAddEntryListenerWithPredicateCodec.decodeResponse(msg2).response
 def Put(self,   key, value, threadId, ttl):
     msg=mapcodec.MapPutCodec.encodeRequest( encode.encodestring(self.title), key, value, encode.encodeint64(threadId), encode.encodeint64(ttl))
     retryable=msg.retryable
     self.connection.adjustCorrelationId(msg)
     self.connection.adjustPartitionId(msg,key)
     correlationid=msg.correlation
     self.connection.sendPackage(msg.encodeMessage())
     response=self.connection.getPackageWithCorrelationId(correlationid,retryable)
     msg2=ClientMessage.decodeMessage(response)
     return mapcodec.MapPutCodec.decodeResponse(msg2).response