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 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 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