Class KeyValuePair<K,V>
- java.lang.Object
-
- com.moilioncircle.redis.replicator.event.AbstractEvent
-
- com.moilioncircle.redis.replicator.rdb.datatype.KeyValuePair<K,V>
-
- All Implemented Interfaces:
Event,Serializable
- Direct Known Subclasses:
BatchedKeyValuePair,ContextKeyValuePair,DumpKeyValuePair,KeyStringValueByteArrayIterator,KeyStringValueHash,KeyStringValueList,KeyStringValueMapEntryIterator,KeyStringValueModule,KeyStringValueSet,KeyStringValueStream,KeyStringValueString,KeyStringValueZSet,KeyStringValueZSetEntryIterator
public class KeyValuePair<K,V> extends AbstractEvent
- Since:
- 2.1.0
- Author:
- Leon Chen
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.moilioncircle.redis.replicator.event.Event
Event.Context
-
-
Field Summary
Fields Modifier and Type Field Description protected DBdbprotected EvictTypeevictTypeprotected LongevictValueprotected ExpiredTypeexpiredTypeprotected LongexpiredValueprotected Kkeyprotected Vvalueprotected intvalueRdbType-
Fields inherited from class com.moilioncircle.redis.replicator.event.AbstractEvent
context
-
-
Constructor Summary
Constructors Constructor Description KeyValuePair()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBgetDb()EvictTypegetEvictType()LonggetEvictValue()LonggetExpiredMs()IntegergetExpiredSeconds()ExpiredTypegetExpiredType()LonggetExpiredValue()KgetKey()VgetValue()intgetValueRdbType()voidsetDb(DB db)voidsetEvictType(EvictType evictType)voidsetEvictValue(Long evictValue)voidsetExpiredType(ExpiredType expiredType)voidsetExpiredValue(Long expiredValue)voidsetKey(K key)voidsetValue(V value)voidsetValueRdbType(int valueRdbType)-
Methods inherited from class com.moilioncircle.redis.replicator.event.AbstractEvent
getContext, setContext
-
-
-
-
Method Detail
-
getValueRdbType
public int getValueRdbType()
-
setValueRdbType
public void setValueRdbType(int valueRdbType)
-
getExpiredType
public ExpiredType getExpiredType()
-
setExpiredType
public void setExpiredType(ExpiredType expiredType)
-
getExpiredValue
public Long getExpiredValue()
-
setExpiredValue
public void setExpiredValue(Long expiredValue)
-
getEvictType
public EvictType getEvictType()
-
setEvictType
public void setEvictType(EvictType evictType)
-
getEvictValue
public Long getEvictValue()
-
setEvictValue
public void setEvictValue(Long evictValue)
-
getKey
public K getKey()
-
setKey
public void setKey(K key)
-
getValue
public V getValue()
-
setValue
public void setValue(V value)
-
getDb
public DB getDb()
-
setDb
public void setDb(DB db)
-
getExpiredSeconds
public Integer getExpiredSeconds()
- Returns:
- expiredValue as Integer
-
getExpiredMs
public Long getExpiredMs()
- Returns:
- expiredValue as Long
-
-