**Inheritance:**
java.lang.Object, com.aspose.pdf.Metered

```
public class Metered extends Object
```

<p> Provides methods to set metered key. </p> <hr> In this example, an attempt will be made to set metered public and private key <pre> The component jar file: Metered matered = new Metered(); matered.setMeteredKey("PublicKey", "PrivateKey"); </pre>

## Constructors

| Constructor | Description |
| --- | --- |
| [Metered](#Metered--) | Initializes a new instance of this class. |

## Methods

| Method | Description |
| --- | --- |
| [getConsumptionCredit](#getConsumptionCredit--) | Gets consumption credit |
| [getConsumptionQuantity](#getConsumptionQuantity--) | Gets consumption file size |
| [setMeteredKey](#setMeteredKey-java.lang.String-java.lang.String-) | Sets metered public and private key |

### Metered {#Metered--}
```
public Metered()
```

Initializes a new instance of this class.

### getConsumptionCredit {#getConsumptionCredit--}
```
public static com.aspose.ms.System.Decimal getConsumptionCredit() throws Exception
```

Gets consumption credit

**Returns:**
consumption quantity @throws Exception if Metered API problem.

### getConsumptionQuantity {#getConsumptionQuantity--}
```
public static com.aspose.ms.System.Decimal getConsumptionQuantity() throws Exception
```

Gets consumption file size

**Returns:**
consumption quantity @throws Exception if Metered API problem.

### setMeteredKey {#setMeteredKey-java.lang.String-java.lang.String-}
Sets metered public and private key
