Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.util
Class RequestDequeue  view RequestDequeue download RequestDequeue.java

java.lang.Object
  extended byorg.objectstyle.cayenne.util.RequestDequeue

public class RequestDequeue
extends java.lang.Object

RequestDequeue encapsulates the result of a thread wait in the RequestQueue.


Field Summary
static int DEQUEUE_SUCCESS
           
protected  int dequeueEventCode
           
protected  java.lang.Object dequeueEventObject
           
static int INTERRUPTED
           
protected  java.lang.String name
           
static int QUEUE_FULL
           
static int TIMED_OUT
           
 
Constructor Summary
RequestDequeue()
           
RequestDequeue(java.lang.String name)
           
 
Method Summary
 int getDequeueEventCode()
          Returns the dequeueEventCode.
 java.lang.Object getDequeueEventObject()
          Returns the dequeueEventObject.
 java.lang.String getName()
          Returns the name.
 boolean isDequeueSuccess()
           
 boolean isInterrupted()
           
 boolean isQueueFull()
           
 boolean isTimedOut()
           
 void setDequeueEventCode(int dequeueEventCode)
          Sets the dequeueEventCode.
 void setDequeueEventObject(java.lang.Object dequeueEventObject)
          Sets the dequeueEventObject.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEQUEUE_SUCCESS

public static final int DEQUEUE_SUCCESS
See Also:
Constant Field Values

QUEUE_FULL

public static final int QUEUE_FULL
See Also:
Constant Field Values

TIMED_OUT

public static final int TIMED_OUT
See Also:
Constant Field Values

INTERRUPTED

public static final int INTERRUPTED
See Also:
Constant Field Values

dequeueEventObject

protected java.lang.Object dequeueEventObject

dequeueEventCode

protected int dequeueEventCode

name

protected java.lang.String name
Constructor Detail

RequestDequeue

public RequestDequeue()

RequestDequeue

public RequestDequeue(java.lang.String name)
Method Detail

getDequeueEventCode

public int getDequeueEventCode()
Returns the dequeueEventCode.


getDequeueEventObject

public java.lang.Object getDequeueEventObject()
Returns the dequeueEventObject.


setDequeueEventCode

public void setDequeueEventCode(int dequeueEventCode)
Sets the dequeueEventCode.


setDequeueEventObject

public void setDequeueEventObject(java.lang.Object dequeueEventObject)
Sets the dequeueEventObject.


isDequeueSuccess

public boolean isDequeueSuccess()

isQueueFull

public boolean isQueueFull()

isTimedOut

public boolean isTimedOut()

isInterrupted

public boolean isInterrupted()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


getName

public java.lang.String getName()
Returns the name.