org.exolab.core.messenger
Class Context

java.lang.Object
  extended byorg.exolab.core.messenger.Context

public class Context
extends java.lang.Object

This class encapsulates context information passed to Connection instances at construction

Version:
$Revision: 1.1 $ $Date: 2002/02/15 08:40:05 $
Author:
Tim Anderson

Constructor Summary
protected Context(int connectionId, Limits limits, ThreadPool threads)
          Create a new connection context
 
Method Summary
 int getConnectionId()
          Return the unique identifier for the connection
 Limits getLimits()
          Return the limits to be placed on the connection
 ThreadPool getThreads()
          Return the pool of threads that the connection may use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Context

protected Context(int connectionId,
                  Limits limits,
                  ThreadPool threads)
Create a new connection context

Parameters:
connectionId - the identifier to assign to the connection
limits - limits to be placed on the connection
threads - the pool of threads that the connection may use
Throws:
java.lang.IllegalArgumentException - if limits or threads is null
Method Detail

getConnectionId

public int getConnectionId()
Return the unique identifier for the connection

Returns:
the identifier for the connection

getLimits

public Limits getLimits()
Return the limits to be placed on the connection

Returns:
the limits to be placed on the connection

getThreads

public ThreadPool getThreads()
Return the pool of threads that the connection may use

Returns:
the pool of threads that the connection may use


Copyright © 1999-2005 The Exolab Group. All Rights Reserved.