Show / Hide Table of Contents

# Class SessionState

##### Inheritance

System.Object
SessionState

##### 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)

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

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

##### Syntax

    public class SessionState

### Constructors

| Improve this Doc View Source

#### SessionState(SessionInfo)

##### Declaration

    public SessionState(SessionInfo info)

##### Parameters

Type | Name | Description
--- | --- | ---
SessionInfo | info |

### Properties

| Improve this Doc View Source

#### ConsumerIds

##### Declaration

    public AtomicCollection<ConsumerId> ConsumerIds { get; }

##### Property Value

Type | Description
--- | ---
AtomicCollection<ConsumerId> |

| Improve this Doc View Source

#### ConsumerStates

##### Declaration

    public AtomicCollection<ConsumerState> ConsumerStates { get; }

##### Property Value

Type | Description
--- | ---
AtomicCollection<ConsumerState> |

| Improve this Doc View Source

#### Info

##### Declaration

    public SessionInfo Info { get; }

##### Property Value

Type | Description
--- | ---
SessionInfo |

| Improve this Doc View Source

#### Item[ConsumerId]

##### Declaration

    public ConsumerState this[ConsumerId consumerId] { get; }

##### Parameters

Type | Name | Description
--- | --- | ---
ConsumerId | consumerId |

##### Property Value

Type | Description
--- | ---
ConsumerState |

| Improve this Doc View Source

#### Item[ProducerId]

##### Declaration

    public ProducerState this[ProducerId producerId] { get; }

##### Parameters

Type | Name | Description
--- | --- | ---
ProducerId | producerId |

##### Property Value

Type | Description
--- | ---
ProducerState |

| Improve this Doc View Source

#### ProducerIds

##### Declaration

    public AtomicCollection<ProducerId> ProducerIds { get; }

##### Property Value

Type | Description
--- | ---
AtomicCollection<ProducerId> |

| Improve this Doc View Source

#### ProducerStates

##### Declaration

    public AtomicCollection<ProducerState> ProducerStates { get; }

##### Property Value

Type | Description
--- | ---
AtomicCollection<ProducerState> |

### Methods

| Improve this Doc View Source

#### AddConsumer(ConsumerInfo)

##### Declaration

    public void AddConsumer(ConsumerInfo info)

##### Parameters

Type | Name | Description
--- | --- | ---
ConsumerInfo | info |

| Improve this Doc View Source

#### AddProducer(ProducerInfo)

##### Declaration

    public void AddProducer(ProducerInfo info)

##### Parameters

Type | Name | Description
--- | --- | ---
ProducerInfo | info |

| Improve this Doc View Source

#### getConsumerState(ConsumerId)

##### Declaration

    public ConsumerState getConsumerState(ConsumerId consumerId)

##### Parameters

Type | Name | Description
--- | --- | ---
ConsumerId | consumerId |

##### Returns

Type | Description
--- | ---
ConsumerState |

| Improve this Doc View Source

#### getProducerState(ProducerId)

##### Declaration

    public ProducerState getProducerState(ProducerId producerId)

##### Parameters

Type | Name | Description
--- | --- | ---
ProducerId | producerId |

##### Returns

Type | Description
--- | ---
ProducerState |

| Improve this Doc View Source

#### RemoveConsumer(ConsumerId)

##### Declaration

    public ConsumerState RemoveConsumer(ConsumerId id)

##### Parameters

Type | Name | Description
--- | --- | ---
ConsumerId | id |

##### Returns

Type | Description
--- | ---
ConsumerState |

| Improve this Doc View Source

#### RemoveProducer(ProducerId)

##### Declaration

    public ProducerState RemoveProducer(ProducerId id)

##### Parameters

Type | Name | Description
--- | --- | ---
ProducerId | id |

##### Returns

Type | Description
--- | ---
ProducerState |

| Improve this Doc View Source

#### Shutdown()

##### Declaration

    public void Shutdown()

| Improve this Doc View Source

#### ToString()

##### Declaration

    public override string ToString()

##### Returns

Type | Description
--- | ---
System.String |

##### Overrides

System.Object.ToString()