@Entity public class MetadataEntity extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EXPIRATION |
Constructor and Description |
---|
MetadataEntity() |
MetadataEntity(ByteBuffer key,
ByteBuffer metadata,
long expiration) |
Modifier and Type | Method and Description |
---|---|
long |
getExpiration() |
MetadataEntityKey |
getKey() |
byte[] |
getKeyBytes() |
byte[] |
getMetadata() |
int |
getVersion() |
boolean |
hasBytes() |
void |
setExpiration(long expiration) |
void |
setKey(MetadataEntityKey key) |
void |
setKeyBytes(byte[] keyBytes) |
void |
setMetadata(byte[] metadata) |
void |
setVersion(int version) |
public static final String EXPIRATION
public MetadataEntity()
public MetadataEntity(ByteBuffer key, ByteBuffer metadata, long expiration)
public MetadataEntityKey getKey()
public void setKey(MetadataEntityKey key)
public byte[] getKeyBytes()
public void setKeyBytes(byte[] keyBytes)
public byte[] getMetadata()
public void setMetadata(byte[] metadata)
public long getExpiration()
public void setExpiration(long expiration)
public int getVersion()
public void setVersion(int version)
public boolean hasBytes()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.