Cumulus4j API
(1.2.0)

org.cumulus4j.store.crypto.keymanager.messagebroker.pmf
Enum PendingRequestStatus

java.lang.Object
  extended by java.lang.Enum<PendingRequestStatus>
      extended by org.cumulus4j.store.crypto.keymanager.messagebroker.pmf.PendingRequestStatus
All Implemented Interfaces:
Serializable, Comparable<PendingRequestStatus>

public enum PendingRequestStatus
extends Enum<PendingRequestStatus>

A PendingRequest's status.

The MessageBrokerPMF first assigns the status waitingForProcessing when a new request comes in when a thread enters the query(...) method.

When a key-manager obtains the request by calling pollRequest(...), the status changes to currentlyBeingProcessed.

Finally, when the pushResponse(...) method is called, the response is associated with the request (via PendingRequest.setResponse(org.cumulus4j.keymanager.back.shared.Response)) and the status advances to completed.

When the query(...) method picks up the response, it finally deletes the PendingRequest from the datastore.

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Enum Constant Summary
completed
           
currentlyBeingProcessed
           
waitingForProcessing
           
 
Method Summary
static PendingRequestStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PendingRequestStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

waitingForProcessing

public static final PendingRequestStatus waitingForProcessing

currentlyBeingProcessed

public static final PendingRequestStatus currentlyBeingProcessed

completed

public static final PendingRequestStatus completed
Method Detail

values

public static PendingRequestStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PendingRequestStatus c : PendingRequestStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PendingRequestStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

Cumulus4j API
(1.2.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.