---
title: "publishQueue"
description: "publishQueue"
url: "https://www.contentstack.com/docs/developers/sdks/content-management-sdk/java/reference/publishqueue"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-08"
---

# publishQueue

## publishQueue

The Publish Queue displays the historical and current details of activities such as publishing, unpublishing, or deleting that can be performed on entries and/or assets. It also shows details of Release deployments. These details include time, entry, content type, version, language, user, environment, and status.

## cancelScheduledAction

The "Cancel Scheduled Action" request will allow you to cancel any scheduled publishing or unpublishing activity of entries and/or assets and cancel the deployment of releases.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
PublishQueue publishQueue = contentstack.stack().publishQueue();
Call<ResponseBody> response = publishQueue.cancelScheduledAction().execute();
if (response.isSuccessful) {
    System.out.println("Response" + response);
}
```

## addHeader

Sets header for the request.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
PublishQueue publishQueue = contentstack.stack().publishQueue();
publishQueue.addHeader("key", value);
```

Header key for the request.

Header value for the request.

## FetchActivity

The "Get publish queue activity" request returns comprehensive information on a specific publish, unpublish, or delete action performed on an entry and/or asset. You can also retrieve details of a specific release deployment.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
PublishQueue publishQueue = contentstack.stack().publishQueue();
Call<ResponseBody> response = publishQueue.fetchActivity().execute();
if (response.isSuccessful) {
    System.out.println("Response" + response);
}
```

## removeParam

Set header for the request.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
PublishQueue publishQueue = contentstack.stack().publishQueue();
publishQueue.removeHeader("key");
```

Removes query param using the key of request.

## find

The "Get publish queue" request returns comprehensive information on activities such as publish, unpublish, and delete performed on entries and/or assets. This request also includes the details of the release deployments in the response body.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
PublishQueue publishQueue = contentstack.stack().publishQueue();
Call<ResponseBody> response = publishQueue.find().execute();
if (response.isSuccessful) {
    System.out.println("Response" + response);
}
```

## addParam

Sets header for the request.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
PublishQueue publishQueue = contentstack.stack().publishQueue();
publishQueue.addParam("key", value);
```

Query parameter key for the request.

Query parameter value for the request.

## publishQueue | Java Management SDK | Contentstack

publishQueue shows past and current publish, unpublish, and delete activity for entries, assets, and releases in the Java Management SDK.