public class QueueItem extends Object implements IdentifiedDataSerializable, Comparable<QueueItem>
Modifier and Type | Field and Description |
---|---|
protected QueueContainer |
container |
protected long |
creationTime |
protected Data |
data |
protected long |
itemId |
Constructor and Description |
---|
QueueItem() |
QueueItem(QueueContainer container,
long itemId,
Data data) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(QueueItem o) |
boolean |
equals(Object o) |
QueueContainer |
getContainer() |
long |
getCreationTime() |
Data |
getData() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
long |
getItemId() |
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setData(Data data) |
void |
setItemId(long itemId) |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
protected long itemId
protected Data data
protected final long creationTime
protected QueueContainer container
public QueueItem()
public QueueItem(QueueContainer container, long itemId, Data data)
public Data getData()
public void setData(Data data)
public long getItemId()
public void setItemId(long itemId)
public long getCreationTime()
public QueueContainer getContainer()
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public int compareTo(QueueItem o)
compareTo
in interface Comparable<QueueItem>
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.