|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.fostore.RequestId
Represents a simple id associated with a request. This is used, for example, to pair up requests and replies: when a Request is written to the store, it is put in a map keyed by RequestId, and when replies are received from the store, they contain a RequestId; this is used to find the corresponding Request which then handles the reply data.
Field Summary | |
static RequestId |
FAILURE
|
private java.lang.Long |
id
|
private static java.util.HashMap |
idFactoryTable
|
private static org.apache.jdo.util.I18NHelper |
msg
I18N support. |
Constructor Summary | |
(package private) |
RequestId(java.io.DataInput in)
Create a new RequestId by reading it's representation from the input. |
private |
RequestId(long id)
|
Method Summary | |
(package private) static RequestId |
allocate(FOStorePMF pmf)
|
boolean |
equals(java.lang.Object other)
Returns true if the other id is equal to this one. |
int |
hashCode()
|
java.lang.String |
toString()
|
(package private) void |
write(java.io.DataOutput out)
Writes its representation to the output stream. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static java.util.HashMap idFactoryTable
private final java.lang.Long id
public static final RequestId FAILURE
private static final org.apache.jdo.util.I18NHelper msg
Constructor Detail |
private RequestId(long id)
RequestId(java.io.DataInput in) throws java.io.IOException
in
- DataInput from which representation is read.Method Detail |
void write(java.io.DataOutput out) throws java.io.IOException
out
- DataOutput stream to which RequestId's representation is
written.
java.io.IOException
static RequestId allocate(FOStorePMF pmf)
public boolean equals(java.lang.Object other)
other
- RequestId to which this one is compared.public int hashCode()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |