public class DefaultPartitionKey
extends java.util.HashMap<java.lang.String,java.lang.Object>
Map. This
key can be used together with DefaultPartitionStrategy.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_CONTENT |
static java.lang.String |
KEY_TIMESTAMP |
| Constructor and Description |
|---|
DefaultPartitionKey()
Instantiates a new default partition key.
|
DefaultPartitionKey(long timestamp)
Instantiates a new default partition key using
a given timestamp.
|
DefaultPartitionKey(long timestamp,
java.lang.Object content)
Instantiates a new default partition key using
a given timestamp and a content object.
|
DefaultPartitionKey(java.util.Map<? extends java.lang.String,? extends java.lang.Object> map)
Instantiates a new default partition key
with a
Map. |
DefaultPartitionKey(java.lang.Object content)
Instantiates a new default partition key using
a content object.
|
public static final java.lang.String KEY_TIMESTAMP
public static final java.lang.String KEY_CONTENT
public DefaultPartitionKey()
public DefaultPartitionKey(long timestamp)
timestamp - the timestamppublic DefaultPartitionKey(long timestamp,
java.lang.Object content)
timestamp - the timestampcontent - the contentpublic DefaultPartitionKey(java.lang.Object content)
content - the contentpublic DefaultPartitionKey(java.util.Map<? extends java.lang.String,? extends java.lang.Object> map)
Map.map - the instance of map