Show / Hide Table of Contents

# Class PrefetchPolicy

Class used to define the various limits that should be used for the Prefetch limit on destination based on the type of Destination in use.

##### Inheritance

System.Object
PrefetchPolicy

##### Implements

System.ICloneable

##### Inherited Members

System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

###### Namespace: Apache.NMS.ActiveMQ

###### Assembly: Apache.NMS.ActiveMQ.dll

##### Syntax

    public class PrefetchPolicy : ICloneable

### Constructors

| Improve this Doc View Source

#### PrefetchPolicy()

##### Declaration

    public PrefetchPolicy()

### Fields

| Improve this Doc View Source

#### DEFAULT_DURABLE_TOPIC_PREFETCH

##### Declaration

    public const int DEFAULT_DURABLE_TOPIC_PREFETCH = 100

##### Field Value

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### DEFAULT_QUEUE_BROWSER_PREFETCH

##### Declaration

    public const int DEFAULT_QUEUE_BROWSER_PREFETCH = 500

##### Field Value

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### DEFAULT_QUEUE_PREFETCH

##### Declaration

    public const int DEFAULT_QUEUE_PREFETCH = 1000

##### Field Value

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### DEFAULT_TOPIC_PREFETCH

##### Declaration

    public const int DEFAULT_TOPIC_PREFETCH = 32766

##### Field Value

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### MAX_PREFETCH_SIZE

##### Declaration

    public const int MAX_PREFETCH_SIZE = 32766

##### Field Value

Type | Description
--- | ---
System.Int32 |

### Properties

| Improve this Doc View Source

#### All

##### Declaration

    public int All { set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### DurableTopicPrefetch

##### Declaration

    public int DurableTopicPrefetch { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### MaximumPendingMessageLimit

##### Declaration

    public int MaximumPendingMessageLimit { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### QueueBrowserPrefetch

##### Declaration

    public int QueueBrowserPrefetch { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### QueuePrefetch

##### Declaration

    public int QueuePrefetch { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### TopicPrefetch

##### Declaration

    public int TopicPrefetch { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

### Methods

| Improve this Doc View Source

#### Clone()

##### Declaration

    public object Clone()

##### Returns

Type | Description
--- | ---
System.Object |

| Improve this Doc View Source

#### SetAll(Int32)

##### Declaration

    public void SetAll(int value)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | value |

### Implements

System.ICloneable