javax.print.attribute.standard

Class QueuedJobCount

public final class QueuedJobCount extends IntegerSyntax implements PrintServiceAttribute

The QueuedJobCount printing attribute reports the number of jobs currently in the queue. These are jobs that are in 'pending', 'processing', 'pending-held' or 'processing-stopped' state.

IPP Compatibility: QueuedJobCount is an IPP 1.1 attribute.

See Also:

Constructor Summary
QueuedJobCount(int value)
Creates a QueuedJobCount object.
Method Summary
booleanequals(Object obj)
Tests if the given object is equal to this object.
Class<? extends Attribute>getCategory()
Returns category of this class.
StringgetName()
Returns the name of this attribute.

Constructor Detail

QueuedJobCount

public QueuedJobCount(int value)
Creates a QueuedJobCount object.

Parameters: value the number of queued jobs

Throws: IllegalArgumentException if value < 0

Method Detail

equals

public boolean equals(Object obj)
Tests if the given object is equal to this object.

Parameters: obj the object to test

Returns: true if both objects are equal, false otherwise.

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Returns: The class QueuedJobCount itself.

getName

public String getName()
Returns the name of this attribute.

Returns: The name "queued-job-count".