|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.queue.impl.QueueItem
public class QueueItem
Queue Item.
Field Summary | |
---|---|
protected QueueContainer |
container
|
protected long |
creationTime
|
protected Data |
data
|
protected long |
itemId
|
Constructor Summary | |
---|---|
QueueItem()
|
|
QueueItem(QueueContainer container,
long itemId,
Data data)
|
Method Summary | |
---|---|
int |
compareTo(QueueItem o)
|
boolean |
equals(Object o)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long itemId
protected Data data
protected final long creationTime
protected QueueContainer container
Constructor Detail |
---|
public QueueItem()
public QueueItem(QueueContainer container, long itemId, Data data)
Method Detail |
---|
public Data getData()
public void setData(Data data)
public long getItemId()
public void setItemId(long itemId)
public long getCreationTime()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- output
IOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- input
IOException
public int compareTo(QueueItem o)
compareTo
in interface Comparable<QueueItem>
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |