@Generated(value="820072078a016ee1d5b9ab02f759f371") public final class MapSetTtlCodec extends Object
key
with a new TTL value.
New TTL value is valid from this operation is invoked, not from the original creation of the entry.
If the entry does not exist or already expired, then this call has no effect.
The entry will expire and get evicted after the TTL. If the TTL is 0,
then the entry lives forever. If the TTL is negative, then the TTL
from the map configuration will be used (default: forever).
If there is no entry with key key
, this call has no effect.
Warning:
Time resolution for TTL is seconds. The given TTL value is rounded to the next closest second value.
Modifier and Type | Class and Description |
---|---|
static class |
MapSetTtlCodec.RequestParameters |
static class |
MapSetTtlCodec.ResponseParameters |
Modifier and Type | Field and Description |
---|---|
static int |
REQUEST_MESSAGE_TYPE |
static int |
RESPONSE_MESSAGE_TYPE |
Modifier and Type | Method and Description |
---|---|
static MapSetTtlCodec.RequestParameters |
decodeRequest(ClientMessage clientMessage) |
static MapSetTtlCodec.ResponseParameters |
decodeResponse(ClientMessage clientMessage) |
static ClientMessage |
encodeRequest(String name,
Data key,
long ttl) |
static ClientMessage |
encodeResponse(boolean response) |
public static final int REQUEST_MESSAGE_TYPE
public static final int RESPONSE_MESSAGE_TYPE
public static ClientMessage encodeRequest(String name, Data key, long ttl)
public static MapSetTtlCodec.RequestParameters decodeRequest(ClientMessage clientMessage)
public static ClientMessage encodeResponse(boolean response)
public static MapSetTtlCodec.ResponseParameters decodeResponse(ClientMessage clientMessage)
Copyright © 2019 Hazelcast, Inc.. All rights reserved.