#/** # Abstract class for Thread::Queue::Duplex container object. # Used by TQD's wait() class methods, to simplify waiting # for an object with a pending queue event (e.g., # Thread::Apartment::Client objects). #
# Licensed under the Academic Free License version 2.1, as specified in the # License.txt file included in this software package, or at # OpenSource.org. # # @author D. Arnold # @since 2005-12-01 # @self $obj # @see Thread::Queue::Queueable #*/ package Thread::Queue::TQDContainer; # # Copyright (C) 2005,2006, Presicient Corp., USA # #/** # Returns the contained TQD object. # Abstract method that assumes the object is hash based, and # the contained TQD is in a member named _tqd. # # @return the contained TQD object #*/ sub get_queue { return $_[0]->{_tqd}; } #/** # Set the contained TQD object. # Abstract method that assumes the object is hash based, and # the contained TQD is in a member named _tqd. # # @param $tqd the TQD to be contained # # @return the TQDContainer object #*/ sub set_queue { $_[0]->{_tqd} = $_[1]; return $_[0]; } 1;