Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.activemq.broker
Interface BrokerClient

All Superinterfaces:
  Service

All Known Implementing Classes:
  BrokerClientImpl

public interface BrokerClient
extends Service

A Broker side proxy representing mostly outbound JMS Connnection

Method Summary
`void` | `cleanUp()` Called when the transport has been terminated, so do our best to shut down any resources and deregister from any subscriptions etc
`void` | `dispatch(ActiveMQMessage message)` Dispatch an ActiveMQMessage to the end client
`int` | `getCapacity()` Get the Capacity for in-progress messages at the peer (probably a JMSConnection) Legimate values between 0-100.
`TransportChannel` | `getChannel()`
`java.lang.String` | `getClientID()` Returns the client ID for this client if the client has been initialised
`void` | `initialize(BrokerConnector brokerConnector, TransportChannel channel)` Initialize the Brokerclient
`boolean` | `isBrokerConnection()`
`boolean` | `isSlowConsumer()` Get an indication if the peer should be considered as a slow consumer
`void` | `updateBrokerCapacity(int capacity)` Update the peer Connection about the Broker's capacity for messages

Methods inherited from interface org.codehaus.activemq.service.Service
`start, stop`

Method Detail

### initialize

    public void initialize(BrokerConnector brokerConnector,
                           TransportChannel channel)

  Initialize the Brokerclient

  Parameters:
    `brokerConnector` -
    `channel` -

### dispatch

    public void dispatch(ActiveMQMessage message)

  Dispatch an ActiveMQMessage to the end client

  Parameters:
    `message` -

### isBrokerConnection

    public boolean isBrokerConnection()

  Returns:
    true if the peer for this Client is itself another Broker

### getCapacity

    public int getCapacity()

  Get the Capacity for in-progress messages at the peer (probably a JMSConnection) Legimate values between 0-100. 0 capacity representing that the peer cannot process any more messages at the current time

  Returns:

### isSlowConsumer

    public boolean isSlowConsumer()

  Get an indication if the peer should be considered as a slow consumer

  Returns:
    true id the peer should be considered as a slow consumer

### updateBrokerCapacity

    public void updateBrokerCapacity(int capacity)

  Update the peer Connection about the Broker's capacity for messages

  Parameters:
    `capacity` -

### getClientID

    public java.lang.String getClientID()

  Returns the client ID for this client if the client has been initialised

### cleanUp

    public void cleanUp()

  Called when the transport has been terminated, so do our best to shut down any resources and deregister from any subscriptions etc

### getChannel

    public TransportChannel getChannel()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Protique, Ltd.. All Rights Reserved.