Package org.apache.activemq.util

Some utility classes

See:
          Description

Interface Summary
Callback A simple callback object used by the TransactionTemplate and org.apache.activemq.util.ExceptionTemplate objects to provide automatic transactional or exception handling blocks.
FactoryFinder.ObjectFactory The strategy that the FactoryFinder uses to find load and instantiate Objects can be changed out by calling the FactoryFinder.setObjectFactory(org.apache.activemq.util.FactoryFinder.ObjectFactory) method with a custom implementation of ObjectFactory.
Handler<T>  
IOExceptionHandler  
ServiceListener A listener for service start, stop events
TypeConversionSupport.Converter  
 

Class Summary
ActiveMQMessageUtils Message utilities
BitArray Simple BitArray to enable setting multiple boolean values efficently Used instead of BitSet because BitSet does not allow for efficent serialization.
BitArrayBin Holder for many bitArrays - used for message audit
BooleanEditor Used by xbean to set booleans.
BrokerSupport Utility class for broker operations
ByteArrayInputStream Very similar to the java.io.ByteArrayInputStream but this version is not thread safe.
ByteArrayOutputStream Very similar to the java.io.ByteArrayOutputStream but this version is not thread safe and the resulting data is returned in a ByteSequence to avoid an extra byte[] allocation.
ByteSequence  
ByteSequenceData Used to write and read primitives to and from a ByteSequence.
ClassLoadingAwareObjectInputStream  
DataByteArrayInputStream Optimized ByteArrayInputStream that can be used more than once
DataByteArrayOutputStream Optimized ByteArrayOutputStream
DefaultIOExceptionHandler  
FactoryFinder  
FactoryFinder.StandaloneObjectFactory The default implementation of Object factory which works well in standalone applications.
GenerateJDBCStatements  
HexSupport Used to convert to hex from byte arrays and back.
IdGenerator Generator for Globally unique Strings.
IndentPrinter A helper class for printing indented text
InetAddressUtil  
IntrospectionSupport  
IntSequenceGenerator  
IOExceptionSupport  
IOHelper  
JMSExceptionSupport  
JMXSupport  
LinkedNode Provides a base class for you to extend when you want object to maintain a doubly linked list to other objects without using a collection class.
LogWriterFinder Class used to find a LogWriter implementation, and returning a LogWriter object, taking as argument the name of a log writer.
LongSequenceGenerator  
LRUCache<K,V> A Simple LRU Cache
LRUSet<E> A Simple LRU Set
MapHelper A bunch of utility methods for working with maps
MarshallingSupport The fixed version of the UTF8 encoding function.
MemoryIntPropertyEditor Used by xbean to set integers.
MemoryPropertyEditor Used by xbean to set longs.
MessageComparatorSupport A base class for comparators which works on JMS Message objects
MessageDestinationComparator A comparator which works on SendCommand objects to compare the destinations
ServiceStopper A helper class used to stop a bunch of services, catching and logging any exceptions and then throwing the first exception when everything is stoped.
ServiceSupport A helper class for working with services together with a useful base class for service implementations.
StopWatch A very simple stop watch.
StringArrayConverter Class for converting to/from String[] to be used instead of a PropertyEditor which otherwise causes memory leaks as the JDK PropertyEditorManager is a static class and has strong references to classes, causing problems in hot-deployment environments.
StringToListOfActiveMQDestinationConverter Special converter for String -> List to be used instead of a PropertyEditor which otherwise causes memory leaks as the JDK PropertyEditorManager is a static class and has strong references to classes, causing problems in hot-deployment environments.
SubscriptionKey  
ThreadPoolUtils Utility methods for working with thread pools ExecutorService.
ThreadTracker Debugging tool to track entry points through code, useful to see runtime call paths To use, add to a method as follows: public void someMethod() { ThreadTracker.track("someMethod"); ...
TimeUtils Time utils.
TransactionTemplate A helper class for running code with a PersistenceAdapter in a transaction.
TypeConversionSupport Type conversion support for ActiveMQ.
URISupport Utility class that provides methods for parsing URI's This class can be used to split composite URI's into their component parts and is used to extract any URI options from each URI in order to set specific properties on Beans.
URISupport.CompositeData A composite URI can be split into one or more CompositeData object which each represent the individual URIs that comprise the composite one.
XStreamFactoryBean  
 

Exception Summary
WrappedException  
 

Package org.apache.activemq.util Description

Some utility classes



Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.